Re: [GENERAL] Disconnecting and cancelling a statement

2011-09-07 Thread Jeff Davis
On Wed, 2011-09-07 at 14:46 +0800, Craig Ringer wrote: > > Right now, PostgreSQL doesn't seem to make an effort to detect a client > > cancellation. For instance, if you do a "select pg_sleep(1000)" and then > > kill -9 the client, the SELECT will remain running. > > pg_sleep isn't a good test. In

Re: [GENERAL] Disconnecting and cancelling a statement

2011-09-06 Thread Craig Ringer
On 7/09/2011 10:00 AM, Jeff Davis wrote: I'm looking for a reliable way for a client to disconnect from a backend such that any running query is terminated. Right now, PostgreSQL doesn't seem to make an effort to detect a client cancellation. For instance, if you do a "select pg_sleep(1000)" and

[GENERAL] Disconnecting and cancelling a statement

2011-09-06 Thread Jeff Davis
I'm looking for a reliable way for a client to disconnect from a backend such that any running query is terminated. Right now, PostgreSQL doesn't seem to make an effort to detect a client cancellation. For instance, if you do a "select pg_sleep(1000)" and then kill -9 the client, the SELECT will r