title: terminating connection due to conflict with recovery, user was holding a relation lock for too long
body: <p>I am getting below error on my PostgreSQL slave node:</p>
  
  <pre><code>FATAL: terminating connection due to conflict with recovery
  DETAIL: User was holding a relation lock for too long.
  </code></pre>
  
  <p>Parameters enabled: <code>hot_standby_feedback = on</code></p>
  
  <p>When I query the <code>pg_stat_database_conflicts</code> view, I only get the count of conflicts that happened till now. Is there any way to find that which query is holding lock (either on master or slave node)?</p>