X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1A958329E1C for ; Sat, 18 Sep 2004 21:34:15 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30178-02 for ; Sat, 18 Sep 2004 20:34:09 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 9B626329E2C for ; Sat, 18 Sep 2004 21:34:10 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1C8lrC-000084-00; Sun, 19 Sep 2004 08:30:54 +1200 Message-ID: <414C9AFB.1080700@opencloud.com> Date: Sun, 19 Sep 2004 08:30:51 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John R Pierce Cc: Kris Jurka , pgsql-jdbc@postgresql.org Subject: Re: "Idle in Transaction" revisited. References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com> <26344.1095464431@sss.pgh.pa.us> <0e3701c49d19$e8a90230$0200a8c0@hogranch.com> <0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com> In-Reply-To: <0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/107 X-Sequence-Number: 10997 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