“index ‘pg_authid_oid_index’ contains unexpected zero page at block 1”

huangapple go评论57阅读模式
英文:

index "pg_authid_oid_index" contains unexpected zero page at block 1

问题

"İndex "pg_authid_oid_index" contains unexpected zero page at block 1 this.

İ can't login because of this error.

Even though i trust the settings in pg_hba.conf, i still get the same error.

Has anyone ever encountered such an error before?

Can I take a backup while the db is in this state?"

"İndex "pg_authid_oid_index" 包含意外的零页面,位于块1处。由于这个错误,我无法登录。

尽管我信任pg_hba.conf中的设置,但我仍然遇到相同的错误。

有人曾经遇到过这样的错误吗?

在数据库处于这种状态时,我能够进行备份吗?"

英文:

İndex "pg_authid_oid_index" contains unexpected zero page at block 1 this.

İ can't login because of this error.

Even though i trust the settings in pg_hba.conf, i still get the same error.

Has anyone ever encountered such an error before?

Can I take a backup while the db is in this state?

答案1

得分: 0

你有数据损坏。

假设那是唯一损坏的文件,你需要以一种不尝试使用系统索引的模式启动数据库。类似 pg_ctl start -o -P 应该能做到这一点。然后,以超级用户身份连接后,重建索引 reindex table pg_authid;

如果你的数据损坏不止一个地方,而且没有备份,那么情况可能相当糟糕。

英文:

You have corruption.

Assuming that that is the only corrupted file, you need to start the database in a mode where it doesn't try to use the system indexes. Something like pg_ctl start -o -P should do that. Then once connected as a superuser, rebuild the index reindex table pg_authid;

If you have corruption through more places than just that file and you don't have a backup, then you are pretty much screwed.

huangapple
  • 本文由 发表于 2023年6月29日 22:36:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76582096.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定