From: Sachchida Ojha <sojha@secure-elements.com>
To: pgsql-performance@postgresql.org
Subject: Long running transaction in pg_activity_log
Date: Wed, 22 Aug 2007 16:40:09 -0400
Message-ID: <E099DB9EF394534CBA0F62ED03CF3BBF0607772D@EXVS01.IceMAIL.com> (raw)
I see some long running transaction in my pg_activity_log table. My app
becomes almost unusable. My question is
How can I query the database to see what sql these transactions are
running.
16385;"em_db";20893;16386;"em_user";"<IDLE> in
transaction";f;"2007-08-22 20:38:06.527792+00";"2007-08-22
20:37:33.937193+00";"127.0.0.1";52466
16385;"em_db";15110;16386;"em_user";"<IDLE> in
transaction";f;"2007-08-22 20:05:08.580643+00";"2007-08-22
19:39:11.670572+00";"127.0.0.1";50961
16385;"em_db";15113;16386;"em_user";"<IDLE> in
transaction";f;"2007-08-22 20:06:01.53394+00";"2007-08-22
19:39:11.704564+00";"127.0.0.1";50964
Thanks
Regards
Sachi
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-performance@postgresql.org
Cc: sojha@secure-elements.com
Subject: Re: Long running transaction in pg_activity_log
In-Reply-To: <E099DB9EF394534CBA0F62ED03CF3BBF0607772D@EXVS01.IceMAIL.com>
References: <E099DB9EF394534CBA0F62ED03CF3BBF0607772D@EXVS01.IceMAIL.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