如何从损坏的postgres数据库中恢复数据?

时间:2017-03-31 16:13:44

标签: sql database postgresql

每当我尝试访问postgress数据库时,我都会收到此错误:

PANIC:  could not open critical system index 2662

我尝试使用本手册恢复系统索引:https://www.postgresql.org/docs/9.6/static/sql-reindex.html (注释部分)

但是当我输入此命令时出现同样的错误:

sudo -u postgres  /usr/pgsql-9.6/bin/postgres --single -D /var/lib/pgsql/9.6/data -P database_name_1

我在centOS 7上使用postgress 9.6。

如果您对此问题有任何线索,请帮我恢复丢失的数据或提供一些提示。

0 个答案:

没有答案