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 14C17329E46 for ; Sat, 18 Sep 2004 22:59:45 +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 45630-07 for ; Sat, 18 Sep 2004 21:59:38 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by svr1.postgresql.org (Postfix) with ESMTP id 8A519329C7B for ; Sat, 18 Sep 2004 22:59:39 +0100 (BST) Received: from [192.168.1.52] (dtenny.ne.client2.attbi.com[24.60.112.224]) by comcast.net (sccrmhc11) with ESMTP id <2004091821593801100ihieve>; Sat, 18 Sep 2004 21:59:38 +0000 Message-ID: <414CAFC9.9090908@comcast.net> Date: Sat, 18 Sep 2004 17:59:37 -0400 From: Jeffrey Tenny User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: postgres jdbc Subject: Re: "Idle in Transaction" revisited. 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/110 X-Sequence-Number: 11000 > On Sat, 18 Sep 2004, John R Pierce wrote: > > >>> I can think of a bunch of scenarios where this would cause problems... >>> >>> * An service app that opens several connections for various threads, >>> and one or another of them goes idle for a long time ... No vacuuming >>> during this state. > > > This doesn't mean no vacuuming, only no vacuuming of old rows. This can > be difficult to actually detect so it's probably happening to people > without them noticing. They see a performance drop, but vacuum seems to > work, so they don't see anything really wrong. > > >>> * Thread has been idle for awhile, then goes to do a SELECT and it will >>> only see data that was committed prior to this threads last COMMIT. >>> > > > This will only happen when working with serializable transaction > isolation, not read committed (which is the default). > 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. This is the first thing that's been sufficiently integrity threatening that it prompted me to de-lurk. I need data as of when the transaction starts, not when the database last committed a transaction via that connection.