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 DA1B4329E23 for ; Tue, 21 Sep 2004 14:44:26 +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 22682-04 for ; Tue, 21 Sep 2004 13:44:14 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 06E7E329CF8 for ; Tue, 21 Sep 2004 14:44:17 +0100 (BST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i8LDiDfi024269 for ; Tue, 21 Sep 2004 13:44:13 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i8LDKJJD015258 for pgsql-jdbc@postgresql.org; Tue, 21 Sep 2004 13:20:19 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.interfaces.jdbc Subject: Re: "Idle in Transaction" revisited. Date: Tue, 21 Sep 2004 15:20:21 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 27 Message-ID: <41502A95.6010204@bigfoot.com> References: <414F822D.3020403@comcast.net> <143501c49f91$19afc340$0200a8c0@hogranch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@pyrenet.fr To: John R Pierce User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en In-Reply-To: <143501c49f91$19afc340$0200a8c0@hogranch.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime To: pgsql-jdbc@postgresql.org 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/140 X-Sequence-Number: 11030 John R Pierce wrote: >>> 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. However it seems the 8.0 client will work with the 7.4.x server Regards Gaetano Mendola