pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Carol Walter <walterc@indiana.edu>
To: Bricklen Anderson <banderson@presinet.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Who's attached to the database?
Date: Thu, 03 Jul 2008 17:04:11 -0500
Message-ID: <486D069F.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <486D41EA.1010606@presinet.com>
References: <9CB3C6A7-9E59-4A40-94BB-C2EE4150EC21@indiana.edu>
	<486CE819.EE98.0025.0@wicourts.gov>
	<DCE58E12-256E-4707-A8E8-3B33FB286D09@indiana.edu>
	<486D41EA.1010606@presinet.com>

>>> Bricklen Anderson <banderson@presinet.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



view thread (12+ messages)  latest in thread

Message-ID: <486D069F.EE98.0025.0@wicourts.gov>
Permalink:  ../486D069F.EE98.0025.0@wicourts.gov/
Also on:    postgresql.org/message-id/486D069F.EE98.0025.0@wicourts.gov

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, walterc@indiana.edu, banderson@presinet.com
  Subject: Re: Who's attached to the database?
  In-Reply-To: <486D069F.EE98.0025.0@wicourts.gov>

* 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