pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeffrey Tenny <jeffrey.tenny@comcast.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: "Idle in Transaction" revisited.
Date: Mon, 20 Sep 2004 21:21:49 -0400
Message-ID: <414F822D.3020403@comcast.net> (raw)

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





view thread (28+ messages)  latest in thread

Message-ID: <414F822D.3020403@comcast.net>
Permalink:  ../414F822D.3020403@comcast.net/
Also on:    postgresql.org/message-id/414F822D.3020403@comcast.net

 · 

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: jeffrey.tenny@comcast.net
  Subject: Re: "Idle in Transaction" revisited.
  In-Reply-To: <414F822D.3020403@comcast.net>
  References: <414F822D.3020403@comcast.net>

* 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