pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: Jeffrey Tenny <jeffrey.tenny@comcast.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: "Idle in Transaction" revisited.
Date: Mon, 20 Sep 2004 21:02:12 -0700
Message-ID: <143501c49f91$19afc340$0200a8c0@hogranch.com> (raw)
References: <414F822D.3020403@comcast.net>

>> 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. 




view thread (28+ messages)  latest in thread

Message-ID: <143501c49f91$19afc340$0200a8c0@hogranch.com>
Permalink:  ../143501c49f91$19afc340$0200a8c0@hogranch.com/
Also on:    postgresql.org/message-id/143501c49f91$19afc340$0200a8c0@hogranch.com

 · 

reply

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: pierce@hogranch.com, jeffrey.tenny@comcast.net
  Subject: Re: "Idle in Transaction" revisited.
  In-Reply-To: <143501c49f91$19afc340$0200a8c0@hogranch.com>
  References: <414F822D.3020403@comcast.net> <143501c49f91$19afc340$0200a8c0@hogranch.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