Re: Connection Idle in transaction - Mailing list pgsql-jdbc

From David Wall
Subject Re: Connection Idle in transaction
Date
Msg-id 06f501c41e93$5426a0e0$3201a8c0@rasta
Whole thread Raw
In response to Re: Connection Idle in transaction  ("Michael Nonemacher" <Michael_Nonemacher@messageone.com>)
List pgsql-jdbc
> In my application, connections come from a connection pool that I
> control, so I set autocommit to true when adding or returning
> connections to the pool, and set it to false when retrieving connections
> from the pool.  The connections that are sitting idle in the pool aren't
> actually "idle in transaction".

While this may work, it seems rather expensive since I believe turning on
and off the autocommit feature actually sends a message from the JDBC driver
to the backend server.  It's probably not a big deal, but it seems like two
more roundtrips to the DB each time a connection is used is a bit much.

David


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Boolean/Bit BUG with 7.4 JDBC Driver (build 213)
Next
From: Oliver Jowett
Date:
Subject: Re: Column size BUG with text/bytea with 7.4 JDBC Driver (build