问题:
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