From: Gaetano Mendola <mendola@bigfoot.com>
To: John R Pierce <pierce@hogranch.com>
Subject: Re: "Idle in Transaction" revisited.
Date: Tue, 21 Sep 2004 15:20:21 +0200
Message-ID: <41502A95.6010204@bigfoot.com> (raw)
In-Reply-To: <143501c49f91$19afc340$0200a8c0@hogranch.com>
References: <414F822D.3020403@comcast.net>
<143501c49f91$19afc340$0200a8c0@hogranch.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mendola@bigfoot.com, pierce@hogranch.com
Subject: Re: "Idle in Transaction" revisited.
In-Reply-To: <41502A95.6010204@bigfoot.com>
References: <414F822D.3020403@comcast.net> <143501c49f91$19afc340$0200a8c0@hogranch.com> <41502A95.6010204@bigfoot.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox