title: How can I fix PostgreSQL canceling statement error on Google SQL?
body: <p>We have PostgreSQL instances (1 master + 1 read replica) on Google SQL. Our Django (1.11.12) application uses these databases via PostGIS engine. When we try to use the database, we saw this error message:</p>
  
  <pre><code>django.db.utils.OperationalError: canceling statement due to conflict with recovery
  DETAIL:  User query might have needed to see row versions that must be removed.
  </code></pre>
  
  <p>When I search for a solution, they generally say that I need to change <strong>hot_standby_feedback</strong> flag. But as you know Google SQL service has some restrictions about <a href="https://cloud.google.com/sql/docs/postgres/flags" rel="nofollow noreferrer">settings</a>. I can't set the flag.</p>
  
  <p>How can I fix this?</p>