問題:
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