From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: pgsql-admin@postgresql.org
Subject: '<IDLE> in transaction' problem in mod_perl/DBI/DBD-Pg environment.
Date: Mon, 25 Oct 2004 11:07:50 +0530
Message-ID: <417C912E.3080109@trade-india.com> (raw)
Hi,
We run our webserver using mod_perl and perl/DBI/DBD-Pg .
I have observed that most of the pg backends that block other queries
are in '<IDLE> in transaction' state. Usually sending a -INT or -TERM
to such blocking backends solve the problem.
My question is
1. Are there some precuation to be taken in perl/DBI programming
in mod_perl environment to avoid backends getting into '<IDLE> in
transaction'
mode?
2. Is it advisable/safe to run a daemon that TERMs such blocking backend
at regular interval.
3. Most Importantly , If a do not have access to to the host is it
possible to
TERMinate such backeds from psql>
Regds
Mallah.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mallah@trade-india.com
Subject: Re: '<IDLE> in transaction' problem in mod_perl/DBI/DBD-Pg environment.
In-Reply-To: <417C912E.3080109@trade-india.com>
References: <417C912E.3080109@trade-india.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