Postgres-XL失败

我们有一个UPS故障,我们的数据库已损坏

我可以连接到postgres-xl本身,但是在运行查询时有很多错误

我必须有28个表,但目前pgAdmin显示我只有21个表 ,我检查一些表没有在pgAdmin列出但存在于pg_class ,有些不存在pgAdmin和pg_class

奇怪的是,如果我selectpg_class所有logging,我可以看到my_table列在返回的结果中,但是当我运行select * from pg_class where relname='my_table'我没有logging( 这是没有大小写敏感的my_table缺lesstypes

另一个错误是

错误:无法打开文件“base / 13303/18834”:没有这样的文件或目录

有时我得到这个错误

错误:无法打开与OID 19826的关系

我运行ANALYZE VERBOSE "my_table"

SQL错误[23505]:错误:重复键值违反唯一约束“pg_statistic_relid_att_inh_index”详细信息:键(starelid,staattnum,stainherit)=(18755,1,f)已经存在。
org.postgresql.util.PSQLException:错误:重复键值违反唯一约束“pg_statistic_relid_att_inh_index”详细信息:键(starelid,staattnum,stainherit)=(18755,1,f)已经存在。

所以我运行这个查询

 select starelid,staattnum,stainherit,count(*) cnt from pg_statistic group by starelid,staattnum,stainherit having count(1) >1 order by 1,2,3; 

我不知道如何重复键值违反,但查询结果是空的,没有重复的logging

另一个问题是

错误:关系“public.my_table”不存在PANIC:无法中止事务212004,它已经提交服务器意外closures连接这可能意味着服务器exception终止