Re: Getting previous statements executed a backend currenly in an in transaction state. - Mailing list pgsql-admin

From Umesh Shastry
Subject Re: Getting previous statements executed a backend currenly in an in transaction state.
Date
Msg-id 004b01c73de8$262e3d20$03b5a8c0@mmkservdev
Whole thread Raw
In response to Getting previous statements executed a backend currenly in an in transaction state.  ("Rajesh Kumar Mallah" <mallah.rajesh@gmail.com>)
List pgsql-admin
This may help you...
 
 
 
----- Original Message -----
Sent: Monday, January 22, 2007 9:55 AM
Subject: [ADMIN] Getting previous statements executed a backend currenly in an <idle> in transaction state.

Dear Friends,

Due to some bug(s) in our apps , in a mod_perl environment
many backend remain in <idle> in transaction state. This
backends sometimes block other statements in batch
processes which in turn blocks access to some production
tables.

This issue has been posted before also but this time i wanted
to know, if it is possible to know what statements have been
executed by the backend in the same transaction which is currently
idle. this can probably help us in identifying the faulty application
code.

in past we had set a logging prefix in guc and used grep to digout
the statements but that was logging all statements which was
probably not a good idea in production environment. Can some
one suggest if anything else is readily available.


regds
mallah.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

pgsql-admin by date:

Previous
From: "Rajesh Kumar Mallah"
Date:
Subject: Re: Getting previous statements executed a backend currenly in an in transaction state.
Next
From: Tom Lane
Date:
Subject: Re: Getting previous statements executed a backend currenly in an in transaction state.