Re: Who's attached to the database?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Carol Walter" <walterc(at)indiana(dot)edu>, "Bricklen Anderson" <banderson(at)presinet(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Who's attached to the database?
Date: 2008-07-03 22:04:11
Message-ID: 486D069F.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

>>> Bricklen Anderson <banderson(at)presinet(dot)com> wrote:

>> Is there a command to disconnect this user?
>
> select pg_cancel_backend(<procpid of connection>);

I thought that just canceled the currently active statement (if any).
Don't you need to use pg_ctl kill (or the OS kill command) to actually
close the connection?

http://www.postgresql.org/docs/8.3/interactive/functions-admin.html

http://www.postgresql.org/docs/8.3/interactive/app-pg-ctl.html

-Kevin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Steve Kecskes 2008-07-03 23:28:05 Recourse Usage
Previous Message Carol Walter 2008-07-03 21:23:50 Re: Who's attached to the database?