<div dir="ltr">Greetings!<div><br></div><div>We are using Postgres advisory locks in our application which is using PGPool&#39;s connection pool.</div><div><br></div><div><br></div><div>Normally, Postgres will unlock any locks that a database session created upon session termination.  However, since PGPool is keeping the sessions to Postgres open for many calls, I wonder how this works.</div>
<div><br></div><div>It looks like this setting:</div><div><br></div><div>reset_query_list = &#39;ABORT; DISCARD ALL&#39;<br></div><div><br></div><div>will cause those SQL commands to be sent to Postgres, which effectively will clear the session including any advisory locks.</div>
<div><br></div><div>That seems to be working, but I&#39;m wondering if it works for all of the ways that the application could disconnect from pgpool.  We really don&#39;t want any advisory locks to survive an application session, ever.</div>
<div><br></div><div><br></div><div>Thanks!</div><div>Justin</div><div><br></div><div><br></div><div>  <br></div><div><br></div><div><br></div></div>