pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Kupershmidt <schmiddy@gmail.com>
To: 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: Mon, 19 Apr 2010 21:24:40 -0400
Message-ID: <z2j4ec1cf761004191824ibad49657odff2914710d343fc@mail.gmail.com> (raw)
In-Reply-To: <l2nc3a7de1f1004190852nbbfb67f3v9cba052fdbb0b599@mail.gmail.com>
References: <480516.98593.qm@web28311.mail.ukl.yahoo.com>
	<l2nc3a7de1f1004190852nbbfb67f3v9cba052fdbb0b599@mail.gmail.com>

On Mon, Apr 19, 2010 at 11:52 AM, Sergey Konoplev <gray.ru@gmail.com> wrote:
> On 19 April 2010 15:27, Steph L <engel306sl@yahoo.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



view thread (10+ messages)  latest in thread

Message-ID: <z2j4ec1cf761004191824ibad49657odff2914710d343fc@mail.gmail.com>
Permalink:  ../z2j4ec1cf761004191824ibad49657odff2914710d343fc@mail.gmail.com/
Also on:    postgresql.org/message-id/z2j4ec1cf761004191824ibad49657odff2914710d343fc@mail.gmail.com

 · 

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: 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: <z2j4ec1cf761004191824ibad49657odff2914710d343fc@mail.gmail.com>

* 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