Re: "Idle in Transaction" revisited.

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Subject: Re: "Idle in Transaction" revisited.
Date: 2004-09-21 13:20:21
Message-ID: 41502A95.6010204@bigfoot.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

John R Pierce wrote:
>>> Trouble is, with JDBC as its currently implemented, the instant you
>>> Commit() or Rollback(), JDBC starts a new transaction automatically,
>>> since JDBC has no explicit Begin(). If that thread then goes
>>> quiescent for an arbitrary period of time (perhaps waiting for more
>>> messaging traffic, our apps are message driven factory floor
>>> middleware things), this transaction remains open. Our
>>> applications are characterized by bursts of frenetic activity
>>> followed by long idle periods, quite unpredictably.
>>
>>
>> I was under the impression that this was easily addressed by
>> delaying the onset of the next transaction after commit/rollback until
>> some actual statement activity began. (like a SELECT...)
>
>
> yes, apparently that fix is in the 8 beta client, but not in the 7.4.5
> client.

However it seems the 8.0 client will work with the 7.4.x server

Regards
Gaetano Mendola

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Andrew Sullivan 2004-09-21 17:49:46 Re: "Idle in Transaction" revisited.
Previous Message Dave Cramer 2004-09-21 12:33:16 Re: Auto-increment serial (Postgresql JDBC driver w/