Skip site navigation (1) Skip section navigation (2)

Re: how do i kill user sessions?

From: Gourish Singbal <gourish(at)gmail(dot)com>
To: "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 13:26:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-admin
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


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.

Gourish Singbal

In response to


pgsql-admin by date

Next:From: Christopher BrowneDate: 2005-05-13 13:30:59
Subject: Re: Incremental backup
Previous:From: Gourish SingbalDate: 2005-05-13 13:21:55
Subject: Re: Help with connections

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group