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 25AF8329E78 for ; Sat, 18 Sep 2004 23:18:56 +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 49028-07 for ; Sat, 18 Sep 2004 22:17:59 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 5EBBC329C7B for ; Sat, 18 Sep 2004 23:17:09 +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 1C8nVi-0000NY-00; Sun, 19 Sep 2004 10:16:50 +1200 Message-ID: <414CB3D0.8020800@opencloud.com> Date: Sun, 19 Sep 2004 10:16:48 +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: Tom Lane Cc: Jeffrey Tenny , postgres jdbc Subject: Re: "Idle in Transaction" revisited. References: <414CAFC9.9090908@comcast.net> <10520.1095545084@sss.pgh.pa.us> In-Reply-To: <10520.1095545084@sss.pgh.pa.us> 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/113 X-Sequence-Number: 11003 Tom Lane wrote: > Jeffrey Tenny writes: > >>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. > > > Apparently you are confused, because the JDBC behavior has always > been like that; it's only the current devel driver that fixes it. That's not entirely true; 7.3-era drivers (which I think is what is being used here) used "set autocommit" rather than explicit BEGIN. It went back to using BEGIN again when 7.4 removed that option. -O