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 15823.1271729409@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  (Josh Kupershmidt <schmiddy@gmail.com>)
Responses Re: How to disconnect a single user in Postgresql 8.2.5 from a database
List pgsql-admin
Josh Kupershmidt <schmiddy@gmail.com> writes:
> 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.

The reason the function isn't there before 8.4 is that that's not
promised to work before 8.4 ... most of the time it will work, but
once in awhile you could get nasty side-effects.

            regards, tom lane

pgsql-admin by date:

Previous
From: Josh Kupershmidt
Date:
Subject: Re: How to disconnect a single user in Postgresql 8.2.5 from a database
Next
From: Scott Marlowe
Date:
Subject: Re: How to disconnect a single user in Postgresql 8.2.5 from a database