From: Michael Glaesemann <grzm@seespotcode.net>
To: Bryce Nesbitt <bryce2@obviously.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: "<IDLE> in transaction" can't be killed with pg_cancel_backend(). Is it a bug?
Date: Tue, 4 Jan 2011 17:32:43 -0500
Message-ID: <6EEECA52-4293-405D-8124-A04A02D40F3E@seespotcode.net> (raw)
In-Reply-To: <4D239F51.2000102@obviously.com>
References: <4D239F51.2000102@obviously.com>
On Jan 4, 2011, at 17:29, Bryce Nesbitt wrote:
> Should I expect pg_cancel_backend() to work in a case like this? If not does this sound like a reportable bug?
pg_cancel_backend() cancels the running query for that backend. In the case of <IDLE>, there is no running query for that backend.
Likely you're looking for pg_terminate_backend().
Michael Glaesemann
grzm seespotcode net
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-sql@postgresql.org
Cc: grzm@seespotcode.net, bryce2@obviously.com
Subject: Re: "<IDLE> in transaction" can't be killed with pg_cancel_backend(). Is it a bug?
In-Reply-To: <6EEECA52-4293-405D-8124-A04A02D40F3E@seespotcode.net>
* 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