pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tommy Gildseth <tommy.gildseth@usit.uio.no>
To: Jessica Richard <rjessil@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Is there a way to kill a connection from the pg_stat_activitly list?
Date: Mon, 15 Oct 2007 15:23:21 +0200
Message-ID: <471369C9.1060301@usit.uio.no> (raw)
In-Reply-To: <23085.65196.qm@web56403.mail.re3.yahoo.com>
References: <23085.65196.qm@web56403.mail.re3.yahoo.com>

Jessica Richard wrote:
> When you see a hanging Postgres connection (or a job running so long 
> and you don't want to continue any more) from
>
> select * from pg_stat_activity
>
> and you want to disconnect it,
>
> how do you do it?

|pg_cancel_backend()


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

-- 
Tommy Gildseth
DBA, Gruppe for databasedrift
Universitetet i Oslo, USIT
m: +47 45 86 38 50
t: +47 22 85 29 39




view thread (13+ messages)  latest in thread

Message-ID: <471369C9.1060301@usit.uio.no>
Permalink:  ../471369C9.1060301@usit.uio.no/
Also on:    postgresql.org/message-id/471369C9.1060301@usit.uio.no

 · 

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: tommy.gildseth@usit.uio.no, rjessil@yahoo.com
  Subject: Re: Is there a way to kill a connection from the pg_stat_activitly list?
  In-Reply-To: <471369C9.1060301@usit.uio.no>

* 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