简体   繁体   English

如何在Postgresql 9.3中提交Ghost事务?

[英]How to commit a ghost transaction in Postgresql 9.3?

I am working on a sample dataset restored from my customer's backup. 我正在研究从客户备份中还原的样本数据集。 For some tables, the select count(*) returns a number, but the select * returns nothing. 对于某些表,select count(*)返回一个数字,但是select *不返回任何内容。 I already rebuilt all indexes. 我已经重建了所有索引。 I suspect that these tables were loaded with an ETL process, using a transaction that was not committed, and all came to me with the backup. 我怀疑这些表使用未提交的事务加载了ETL流程,并且所有备份都交给了我。 How can I commit pending transactions, if any, in his case ? 在他的情况下,如何进行未决交易?

Thanks. 谢谢。 Fred 弗雷德

The source of the issue was the name of one colunm of the table: PCF_index 问题的根源是该表的一个列的名称:PCF_index

psql generated "PCF_index" when exporting the schema. 导出模式时,psql生成了“ PCF_index”。 This caused trouble to Squirrel when trying to read it. 尝试阅读它时,这给Squirrel带来了麻烦。

After the column is renamed pcf_index, the issue was solved. 在将该列重命名为pcf_index之后,此问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM