報錯信息如下
解決
- 在數據庫服務器上使用oid2name,將報錯oid對應的name找出來。這里假設db庫是xxdbname
[postgres@local ~]$ /usr/local/pgsql12/bin/oid2name -d 'xxdbname' -f 2663
From database "xxdbname":
Filenode Table Name
--------------------------------------
2663 pg_class_relname_nsp_index
[postgres@local ~]$
- psql進入DB,切換道對應db庫使用REINDEX重建索引
\c xxdbname;
REINDEX INDEX pg_class_relname_nsp_index;
問題解決