Deal with Postgresql Error -canceling statement due to conflict with recovery- in psycopg2
问题 I'm creating a reporting engine that makes a couple of long queries over a standby server and process the result with pandas. Everything works fine but sometimes I have some issues with the execution of those queries using a psycopg2 cursor: the query is cancelled with the following message: ERROR: cancelling statement due to conflict with recovery Detail: User query might have needed to see row versions that must be removed I was investigating this issue PostgreSQL ERROR: canceling statement