Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id B22EB9F9845 for ; Wed, 22 Aug 2007 17:43:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 93114-02 for ; Wed, 22 Aug 2007 17:43:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from smtp.icemail.com (unknown [66.117.50.180]) by postgresql.org (Postfix) with ESMTP id 1A4559F97FC for ; Wed, 22 Aug 2007 17:43:50 -0300 (ADT) Received: from EXVS01.IceMAIL.com ([10.2.23.110] RDNS failed) by smtp.icemail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 22 Aug 2007 16:40:11 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7E4FC.A29CAEC5" Subject: Long running transaction in pg_activity_log Date: Wed, 22 Aug 2007 16:40:09 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Long running transaction in pg_activity_log Thread-Index: Acfk/SNgaE9n29SoSa+IoiS97DxeFA== From: "Sachchida Ojha" To: X-OriginalArrivalTime: 22 Aug 2007 20:40:11.0519 (UTC) FILETIME=[A2A878F0:01C7E4FC] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/250 X-Sequence-Number: 26380 This is a multi-part message in MIME format. ------_=_NextPart_001_01C7E4FC.A29CAEC5 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I see some long running transaction in my pg_activity_log table. My app becomes almost unusable. My question is=20 How can I query the database to see what sql these transactions are running.=20 16385;"em_db";20893;16386;"em_user";" 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";" 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";" 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 ------_=_NextPart_001_01C7E4FC.A29CAEC5 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Long running transaction in pg_activity_log

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";&q= uot;<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";&q= uot;<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";&q= uot;<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

------_=_NextPart_001_01C7E4FC.A29CAEC5--