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. The query that causes the error works fine for 1 month but when you query for more than 1 month an error results. 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 回答1: Longer queries will be canceled more often. You can work around this by starting a repeatable read transaction on primary which does a dummy query and then sits