1. 程式人生 > >could not read block 0 in file "base/16389/17624"

could not read block 0 in file "base/16389/17624"

解決 應用 做了 block 創建 erro 可用 從庫 失敗

PGSQL查詢數據出現錯誤

錯誤信息:

ERROR: could not read block 0 in file "base/16389/17624": read only 0 of 8192 bytes


原因:

應用訪問PGSQL主從庫時做了高可用實施,實施過程中反復切主從,導致表的索引丟失,所以查詢數據失敗報錯。


解決辦法:

創建數據對應的表的索引


could not read block 0 in file "base/16389/17624"