Search Postgresql Archives

Re: Idle in transaction help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while 
> boarding. Thank you for flying nlogn airlines.

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux