title: PostgreSQL ERROR: canceling statement due to conflict with recovery
body: <p>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.</p>
  
  <pre><code>ERROR: canceling statement due to conflict with recovery
  Detail: User query might have needed to see row versions that must be removed
  </code></pre>
  
  <p>Any suggestions on how to resolve? Thanks</p>