<div dir="ltr">Greetings!<div><br></div><div>We are using Postgres advisory locks in our application which is using PGPool'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 = 'ABORT; DISCARD ALL'<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'm wondering if it works for all of the ways that the application could disconnect from pgpool.  We really don'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>