pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: John R Pierce <pierce@hogranch.com>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: "Idle in Transaction" revisited.
Date: Sun, 19 Sep 2004 08:30:51 +1200
Message-ID: <414C9AFB.1080700@opencloud.com> (raw)
In-Reply-To: <0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com>
References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com>
	<26344.1095464431@sss.pgh.pa.us>
	<0e3701c49d19$e8a90230$0200a8c0@hogranch.com>
	<Pine.BSO.4.56.0409180219260.17711@leary.csoft.net>
	<0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com>

John R Pierce wrote:
>>> Its my understanding from reading the prior threads on this that 
>>> somewhere
>>> after jdbc 213 they moved the initial BEGIN to the first SQL Execute 
>>> rather
>>> than immediately upon Connection.
>>>
>>
>> This change only occured in the 8.0 development branch, and not on the 
>> 7.4
>> branch.  I produced a patch and then current versions of the 7.4 jar 
>> files
>> for people to try this out on their 7.4 servers, but no one ever got back
>> to me about it, ...
> 
> 
> I'm amazed...   Sounds like noone is doing any serious work with JDBC, 
> or only has short lived 'applet' kind of applications where long 
> persistance connections aren't an issue.

[...]

Often, connection pools have a maximum connection lifetime (either 
directly or indirectly via their replacement policy). So you may just 
not see the problem at all in this case since you never have an idle 
transaction open indefinitely.

I'm doing "serious work" with JDBC and the stable driver does have a 
number of deficiencies. I've been fixing them as I encounter them -- I 
suggest you try the current development driver as this is where I've 
been doing my work. The development driver should be quite stable, it 
just hasn't had as much real-world use as the stable driver has had. 
We're using it in released versions of our software without problems.

-O



view thread (28+ messages)  latest in thread

Message-ID: <414C9AFB.1080700@opencloud.com>
Permalink:  ../414C9AFB.1080700@opencloud.com/
Also on:    postgresql.org/message-id/414C9AFB.1080700@opencloud.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: oliver@opencloud.com, pierce@hogranch.com, books@ejurka.com
  Subject: Re: "Idle in Transaction" revisited.
  In-Reply-To: <414C9AFB.1080700@opencloud.com>
  References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com> <26344.1095464431@sss.pgh.pa.us> <0e3701c49d19$e8a90230$0200a8c0@hogranch.com> <Pine.BSO.4.56.0409180219260.17711@leary.csoft.net> <0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com> <414C9AFB.1080700@opencloud.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