PostgreSQL 错误:由于与恢复冲突而取消语句 - PostgreSQL ERROR: canceling statement due to conflict with recovery

问题:

I'm getting the following error when running a query on a PostgreSQL db in standby mode.在待机模式下在 PostgreSQL 数据库上运行查询时,我收到以下错误。 The query that causes the error works fine for 1 month but when you query for more than 1 month an error results.导致错误的查询可以正常工作 1 个月,但是当您查询超过 1 个月时会导致错误。

ERROR: canceling statement due to conflict with recovery
Detail: User query might have needed to see row versions that must be removed

Any suggestions on how to resolve?有关如何解决的任何建议? Thanks谢谢


解决方案:

参考一: https://en.stackoom.com/question/zE9s
参考二: https://stackoom.com/question/zE9s
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章