Idle in transaction help

From: "Scot Kreienkamp" <SKreien(at)la-z-boy(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Idle in transaction help
Date: 2009-07-10 20:05:09
Message-ID: 37752EAC00ED92488874A27A4554C2F303330A53@lzbs6301.na.lzb.hq
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi everyone,

I need some help with tracking down idle in transaction problems. We
have a custom application that is leaving queries in idle in transaction
status for unknown reasons. The developers are working on ways to track
it down, but right now the options on their end are limited and it will
be at least 1-2 months until they have something working. I am trying
to track down the problem from the PG end in the meantime. Is there any
way to tell what query is hanging in idle in transaction status? Or
what the current or previous query was/is, since idle in transaction
doesn't tell me anything? I'm kind of at a loss on what if anything I
can do from the database end to help (read push) the programmers to find
and fix this problem.

My first priority is helping them find and fix the problem if I can. My
second priority is finding an automated way to deal with the idle in
transactions as they are locking tables and rows, causing other
transactions to hang also. None of the timeouts appear to affect idle
in transactions.

I'm on PG 8.3.7. Upgrading to 8.4 won't be an option for several
months, enough time for the developers to test and develop against 8.4.

Thanks for any help you can give me.

Scot Kreienkamp

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2009-07-10 20:10:27 Re: How to trace client sql requests?
Previous Message James B. Byrne 2009-07-10 19:45:35 Re: How to trace client sql requests?