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 5F343329E32 for ; Tue, 21 Sep 2004 05:11:50 +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 30543-09 for ; Tue, 21 Sep 2004 04:11:48 +0000 (GMT) Received: from hogranch.com (hogranch.com [66.117.128.240]) by svr1.postgresql.org (Postfix) with ESMTP id 541D3329E23 for ; Tue, 21 Sep 2004 05:11:47 +0100 (BST) Received: from porker (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with SMTP id i8L4Bgc17869; Mon, 20 Sep 2004 21:11:42 -0700 Message-ID: <143501c49f91$19afc340$0200a8c0@hogranch.com> From: "John R Pierce" To: "Jeffrey Tenny" , References: <414F822D.3020403@comcast.net> Subject: Re: "Idle in Transaction" revisited. Date: Mon, 20 Sep 2004 21:02:12 -0700 Organization: Graphics Control MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response 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/135 X-Sequence-Number: 11025 >> Trouble is, with JDBC as its currently implemented, the instant you >> Commit() or Rollback(), JDBC starts a new transaction automatically, >> since JDBC has no explicit Begin(). If that thread then goes >> quiescent for an arbitrary period of time (perhaps waiting for more >> messaging traffic, our apps are message driven factory floor >> middleware things), this transaction remains open. Our >> applications are characterized by bursts of frenetic activity >> followed by long idle periods, quite unpredictably. > > I was under the impression that this was easily addressed by > delaying the onset of the next transaction after commit/rollback until > some actual statement activity began. (like a SELECT...) yes, apparently that fix is in the 8 beta client, but not in the 7.4.5 client.