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 44743329E49 for ; Sat, 18 Sep 2004 11:37:47 +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 82365-01 for ; Sat, 18 Sep 2004 10:37:40 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 22265329CFD for ; Sat, 18 Sep 2004 11:37:42 +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 i8IAbcCn083558 for ; Sat, 18 Sep 2004 10:37:38 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i8IAZSv5083167 for pgsql-jdbc@postgresql.org; Sat, 18 Sep 2004 10:35:28 GMT From: Gaetano Mendola X-Newsgroups: comp.databases.postgresql.interfaces.jdbc Subject: Re: "Idle in Transaction" revisited. Date: Sat, 18 Sep 2004 12:35:18 +0200 Organization: PYRENET Midi-pyrenees Provider Lines: 14 Message-ID: <414C0F66.7090507@bigfoot.com> References: <0dfb01c49d0e$5c61c1f0$0200a8c0@hogranch.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; 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: <0dfb01c49d0e$5c61c1f0$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/94 X-Sequence-Number: 10984 John R Pierce wrote: > I'm curious what common practice is for threads that do nothing but > SELECTS... do folks just enable auto_commit, thereby preventing pgJDBC > from doing BEGIN; ? Do they lace their code with COMMIT() calls? We were bitten by this problem too, and my solution was to suggest our developer to do and explicit: "ABORT" after the connection, and do explicit "BEGIN" "END" instead of rely on the jdbc interface. Regards Gaetano Mendola