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 1F887329D20 for ; Sat, 18 Sep 2004 16:47:40 +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 51735-03 for ; Sat, 18 Sep 2004 15:47:35 +0000 (GMT) Received: from hogranch.com (hogranch.com [66.117.128.240]) by svr1.postgresql.org (Postfix) with ESMTP id 45C70329D62 for ; Sat, 18 Sep 2004 16:47:34 +0100 (BST) Received: from porker (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with SMTP id i8IFlOc21361; Sat, 18 Sep 2004 08:47:24 -0700 Message-ID: <0f7c01c49d96$cab9dc90$0200a8c0@hogranch.com> From: "John R Pierce" To: "Kris Jurka" Cc: References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com> <26344.1095464431@sss.pgh.pa.us> <0e3701c49d19$e8a90230$0200a8c0@hogranch.com> Subject: Re: "Idle in Transaction" revisited. Date: Sat, 18 Sep 2004 08:47:24 -0700 Organization: Graphics Control MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean 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/99 X-Sequence-Number: 10989 >> 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. 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. * 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. etc etc etc.