Re: How to disconnect a single user in Postgresql 8.2.5 from a database

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
Cc: Steph L <engel306sl(at)yahoo(dot)fr>, pgsql-admin(at)postgresql(dot)org
Subject: Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Date: 2010-04-20 01:24:40
Message-ID: z2j4ec1cf761004191824ibad49657odff2914710d343fc@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Mon, Apr 19, 2010 at 11:52 AM, Sergey Konoplev <gray(dot)ru(at)gmail(dot)com> wrote:
> On 19 April 2010 15:27, Steph L <engel306sl(at)yahoo(dot)fr> wrote:
>> How to disconnect a single user in Postgresql 8.2.5 from a database ?
> AFAIK the only way is to upgrade to 8.4 and use pg_terminate_backend():
> http://www.postgresql.org/docs/8.4/interactive/functions-admin.html

pg_terminate_backend() is just a SQL wrapper around:
kill -SIGTERM [backend PID]

For versions before 8.4: if you can SSH in to the server, run the
above on the PID of the backend your user is connected to, and that
should terminate their connection.

Josh

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2010-04-20 02:10:09 Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Previous Message Kevin Grittner 2010-04-19 18:41:43 Re: archived WALL files question