我在 postgres 中有一个数据库。数据库很大,总大小超过 4TB,有超过 500,000 个表和许多索引。数据库已超过 4 岁。最近,Pgsql DB 服务器没有启动,所以我做了以下重新启动它:
/usr/pgsql-9.3/bin/pg_resetxlog -f /var/lib/pgsql/9.3/data
/usr/pgsql-9.3/bin/pg_ctl -D /var/lib/pgsql/9.3/data stop
/usr/pgsql-9.3/bin/pg_ctl -D /var/lib/pgsql/9.3/data start
/usr/pgsql-9.3/bin/pg_ctl -D /var/lib/pgsql/9.3/data stop
systemctl restart postgresql-9.3
从那时起,每当我尝试在数据库中创建新表时,我都会收到以下错误:
mps_schools=> create table test_test(hello int);
ERROR: right sibling's left-link doesn't match: block 19 links to 346956 instead of expected 346955 in index "pg_depend_reference_index"
我已经尝试重新索引数据库,但它不起作用。我还能做什么?