From: Jonah H. Harris <jonah.harris@gmail.com>
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 09:50:15 -0400
Message-ID: <36e682920710150650i1ba6b1bfm2376f38537220547@mail.gmail.com> (raw)
In-Reply-To: <23085.65196.qm@web56403.mail.re3.yahoo.com>
References: <23085.65196.qm@web56403.mail.re3.yahoo.com>
On 10/15/07, Jessica Richard <rjessil@yahoo.com> 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?
See pg_cancel_backend
You should also look at using statement_timeout if this is a regular occurrence.
--
Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
EnterpriseDB Corporation | fax: 732.331.1301
499 Thornall Street, 2nd Floor | jonah.harris@enterprisedb.com
Edison, NJ 08837 | http://www.enterprisedb.com/
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: jonah.harris@gmail.com, rjessil@yahoo.com
Subject: Re: Is there a way to kill a connection from the pg_stat_activitly list?
In-Reply-To: <36e682920710150650i1ba6b1bfm2376f38537220547@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