Re: how do i kill user sessions?

From: "Anjan Dave" <adave(at)vantage(dot)com>
To: "Gourish Singbal" <gourish(at)gmail(dot)com>, "Ing(dot) Jhon Carrillo" <jdigital(at)cantv(dot)net>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: how do i kill user sessions?
Date: 2005-05-13 14:36:58
Message-ID: 4BAFBB6B9CC46F41B2AD7D9F4BBAF785026FF805@vt-pe2550-001.vantage.vantage.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Or,

Kill -s SIGINT <pid of offending statement>

Thanks,
Anjan

-----Original Message-----
From: Gourish Singbal [mailto:gourish(at)gmail(dot)com]
Sent: Friday, May 13, 2005 9:27 AM
To: Ing. Jhon Carrillo
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] how do i kill user sessions?

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(at)cantv(dot)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

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Browse pgsql-admin by date

  From Date Subject
Next Message Jags 2005-05-13 14:45:48 problems after upgrading to 7.4.5
Previous Message Christopher Browne 2005-05-13 13:30:59 Re: Incremental backup