pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Josh Kupershmidt <schmiddy@gmail.com>
Cc: Sergey Konoplev <gray.ru@gmail.com>
Cc: Steph L <engel306sl@yahoo.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Date: Tue, 20 Apr 2010 10:58:10 -0400
Message-ID: <28207.1271775490@sss.pgh.pa.us> (raw)
In-Reply-To: <m2wdcc563d11004200729ze7e8b6bfu63b0ffc94b7d9eb5@mail.gmail.com>
References: <480516.98593.qm@web28311.mail.ukl.yahoo.com>
	<l2nc3a7de1f1004190852nbbfb67f3v9cba052fdbb0b599@mail.gmail.com>
	<z2j4ec1cf761004191824ibad49657odff2914710d343fc@mail.gmail.com>
	<15823.1271729409@sss.pgh.pa.us>
	<h2vdcc563d11004192007u167088d7g77900fca2c3a40e3@mail.gmail.com>
	<25670.1271770280@sss.pgh.pa.us>
	<m2wdcc563d11004200729ze7e8b6bfu63b0ffc94b7d9eb5@mail.gmail.com>

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



view thread (10+ messages)

Message-ID: <28207.1271775490@sss.pgh.pa.us>
Permalink:  ../28207.1271775490@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28207.1271775490@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, scott.marlowe@gmail.com, schmiddy@gmail.com, gray.ru@gmail.com, engel306sl@yahoo.fr
  Subject: Re: How to disconnect a single user in Postgresql 8.2.5 from a database
  In-Reply-To: <28207.1271775490@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox