pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: how to kill a Postgres connection on the list of select * from pg_stat_activity?
Date: Mon, 20 Aug 2007 16:21:49 -0500
Message-ID: <dcc563d10708201421r53e58d09u69f6e506e0c87a67@mail.gmail.com> (raw)
In-Reply-To: <518395.14065.qm@web56414.mail.re3.yahoo.com>
References: <518395.14065.qm@web56414.mail.re3.yahoo.com>

On 8/20/07, Jessica Richard <rjessil@yahoo.com> wrote:
> Sometime a script talking to the Postgres has already been killed on the OS
> level, but the Postgres for this script is still listed out of select * from
> pg_stat_activity, saying a particular database is still being accessed by
> this script.
>
> How to kill (release) this connection in this case?
>

see http://www.postgresql.org/docs/8.2/static/functions-admin.html

sepcifically

pg_cancel_backend(pid)



view thread (2+ messages)

Message-ID: <dcc563d10708201421r53e58d09u69f6e506e0c87a67@mail.gmail.com>
Permalink:  ../dcc563d10708201421r53e58d09u69f6e506e0c87a67@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10708201421r53e58d09u69f6e506e0c87a67@mail.gmail.com

 · 

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: scott.marlowe@gmail.com, rjessil@yahoo.com
  Subject: Re: how to kill a Postgres connection on the list of select * from pg_stat_activity?
  In-Reply-To: <dcc563d10708201421r53e58d09u69f6e506e0c87a67@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