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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章