From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Ing. Jhon Carrillo <jdigital@cantv.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: how do i kill user sessions?
Date: Wed, 11 May 2005 15:26:23 -0500
Message-ID: <1115843183.3868.237.camel@state.g2switchworks.com> (raw)
In-Reply-To: <00bc01c55665$31117340$1400a8c0@tgusta2>
References: <00bc01c55665$31117340$1400a8c0@tgusta2>
On Wed, 2005-05-11 at 15:08, Ing. Jhon Carrillo wrote:
> I have a problem with the users administration. When I want to erase
> (drop) some databases there's an error: ** database "name_db" is being
> accessed by other users.** I want to kill the user sessions conected
> but i don't know how to do it (Kill the user sessions).
First, use ps to find the pid of the offending users. for instance:
ps ax|grep postgres|grep test
18925 pts/1 S 0:00 postgres: postgres test [local] idle
then, as the postgres superuser, kill the backend:
kill 18925
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: smarlowe@g2switchworks.com, jdigital@cantv.net
Subject: Re: how do i kill user sessions?
In-Reply-To: <1115843183.3868.237.camel@state.g2switchworks.com>
References: <00bc01c55665$31117340$1400a8c0@tgusta2> <1115843183.3868.237.camel@state.g2switchworks.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