Re: Idle in transaction state. - Mailing list pgsql-general

From Tom Lane
Subject Re: Idle in transaction state.
Date
Msg-id 22969.1157849374@sss.pgh.pa.us
Whole thread Raw
In response to Idle in transaction state.  ("Peter L. Berghold" <Peter@berghold.net>)
Responses Re: Idle in transaction state.  (Jack Orenstein <jao@geophile.com>)
List pgsql-general
"Peter L. Berghold" <Peter@berghold.net> writes:
> What I'm seeing is the first time my web application is being run there
> is a bunch of processes running around that look like:
> "postgres: peter peter_trialdb 127.0.0.1(46222) idle"

"idle" is fine, "idle in transaction" is not so fine, because those
might be holding locks that block things like schema changes.  You need
to figure out why your client-side code isn't closing out its
transactions promptly.

You'd probably be better off asking on the pgsql-jdbc list about this,
as the folks likely to know about Java-stack issues hang out there.

            regards, tom lane

pgsql-general by date:

Previous
From: Jack Orenstein
Date:
Subject: How to use SPI_saveplan
Next
From: Stephan Szabo
Date:
Subject: Re: Is this logical?