Re: How to disconnect a single user in Postgresql 8.2.5 from a database - Mailing list pgsql-admin

From Tom Lane
Subject Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Date
Msg-id 28207.1271775490@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to disconnect a single user in Postgresql 8.2.5 from a database  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-admin
Scott Marlowe <scott.marlowe@gmail.com> writes:
> On Tue, Apr 20, 2010 at 7:31 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Scott Marlowe <scott.marlowe@gmail.com> writes:
>>> So, pg_cancel_backend(pid) is the 8.3 version, that may or may not
>>> always work then, right?
>>
>> No, I didn't say that.

> Well, my experience with it has been that it's similar and it doesn't
> always work.

pg_cancel_backend might or might not always succeed in canceling a
query, if that's what you mean.  What I'm worried about with SIGTERM'ing
an individual backend is negative side-effects, like hanging the entire
database.  Before 8.4 there was never any attempt to ensure that that
would work nicely, and if memory serves we did find some problems when
we tested it.

            regards, tom lane

pgsql-admin by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Next
From: Jeffrey Gaynor
Date:
Subject: SSL question