Re: Idle in transaction help - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Idle in transaction help
Date
Msg-id 20090711153935.GA23823@svana.org
Whole thread Raw
In response to Re: Idle in transaction help  ("Scot Kreienkamp" <SKreien@la-z-boy.com>)
List pgsql-general
On Fri, Jul 10, 2009 at 08:40:28PM -0400, Scot Kreienkamp wrote:
> Anyway, I'm trying to attack it from the database side out since I am
> not a programmer and can't help with that part.  I can do simple CGIs
> with bash, but I don't know Java or C or even Perl yet for that matter.
> Since you guys are the experts, I'm looking for any way to attack this
> problem from the database side.  The tips I've gotten about the JDBC
> driver and commits are helpful in that it gives our programmers things
> to watch out for that we didn't realize, and I'm open to any suggestions
> from the list about how I can help attack this.

One easy approach, get the database to log all queries, complete with
PID, then when you find an indle-in-transaction, go to the logs to find
the last query executed...

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

Attachment

pgsql-general by date:

Previous
From: Martin Gainty
Date:
Subject: Re: Using Postgres to store genetic data
Next
From: Tom Lane
Date:
Subject: Re: XML import with DTD