From: Gourish Singbal <gourish@gmail.com>
To: Ing. Jhon Carrillo <jdigital@cantv.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: how do i kill user sessions?
Date: Fri, 13 May 2005 18:56:51 +0530
Message-ID: <674d1f8a05051306264754fbd0@mail.gmail.com> (raw)
In-Reply-To: <00bc01c55665$31117340$1400a8c0@tgusta2>
References: <00bc01c55665$31117340$1400a8c0@tgusta2>
you can try.
1) ps -ef | grep "postgres"
see which users are connectioned and than.
2) pkill -f 'postgres: postgres <databasename>';
its more safer i suppose than kill -9
regards
Gourish
On 5/12/05, Ing. Jhon Carrillo <jdigital@cantv.net> 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).
>
> thanks.
--
Best,
Gourish Singbal
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: gourish@gmail.com, jdigital@cantv.net
Subject: Re: how do i kill user sessions?
In-Reply-To: <674d1f8a05051306264754fbd0@mail.gmail.com>
References: <00bc01c55665$31117340$1400a8c0@tgusta2> <674d1f8a05051306264754fbd0@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