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 B227E329EB0 for ; Sat, 18 Sep 2004 23:27:57 +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 51362-06 for ; Sat, 18 Sep 2004 22:26:57 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id D8870329E78 for ; Sat, 18 Sep 2004 23:21:32 +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 1C8na3-0000O0-00; Sun, 19 Sep 2004 10:21:19 +1200 Message-ID: <414CB4DC.9080700@opencloud.com> Date: Sun, 19 Sep 2004 10:21:16 +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: Jeffrey Tenny Cc: postgres jdbc Subject: Re: "Idle in Transaction" revisited. References: <414CAFC9.9090908@comcast.net> In-Reply-To: <414CAFC9.9090908@comcast.net> 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=1.1 tagged_above=0.0 required=5.0 tests=NO_DNS_FOR_FROM X-Spam-Level: * X-Archive-Number: 200409/114 X-Sequence-Number: 11004 Jeffrey Tenny wrote: > I'm still running against 7.3.x, but if the above two paragraphs > are true that's very problematic for me if I'm going to upgrade. > My app also runs 24/7 and uses serializable transactions in pooled > connections. > > Are you saying that I will see stale database state at the logical > "start" of my transaction from a pooled connection? > > That's a showstopper for sure. If I'm confused please enlighten me. > I've been holding off on upgrading because of the amount activity on > this list about 7.4+ systems. You'll only see the problem if you use a driver without a fix for the premature-BEGIN problem. Ideally you should be using the current stable driver even with a 7.3 server. The stable driver is intended to work against 7.3 servers correctly, and you're missing out on many bugfixes (although unfortunately not the premature-BEGIN one). AFAIK we haven't been backporting fixes to the 7.3 branch for quite a while now, since the latest drivers directly support 7.3. 7.3 is a bit of a special case with respect to transaction handling as the 7.3-era drivers used the backend "set autocommit" functionality, but then it went away again in 7.4 so we went back to explicit BEGIN. So unfortunately unless you want to use the development driver or fix the stable driver, you might be stuck with the 7.3 driver for now. I think the plan is for the current development driver to become the "stable" driver around the time that 8.0.0 is released. There has also been discussion about dropping protocol V2 support in the driver (and therefore 7.3 support) although we're keeping it for now. And the 7.3 server itself is getting pretty old.. You probably want to start thinking about your upgrade path! -O