Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 56B566323C1 for ; Wed, 18 Nov 2009 07:21:49 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 33273-07 for ; Wed, 18 Nov 2009 11:21:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 25143632396 for ; Wed, 18 Nov 2009 07:21:41 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id 14EEDA1ED; Wed, 18 Nov 2009 06:21:39 -0500 (EST) Date: Wed, 18 Nov 2009 06:21:38 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Kevin Grittner cc: taktos , Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: commit and rollback don't throw exceptions when they should In-Reply-To: <4AF1AE71020000250002C2C3@gw.wicourts.gov> Message-ID: References: <4ADDCCE1020000250002BBEA@gw.wicourts.gov> <4ADF0210.4010100@opencloud.com> <4ADED72A020000250002BC40@gw.wicourts.gov> <4ADF85C8.6040408@opencloud.com> <4AE00316.8030107@gmail.com> <4AF1AE71020000250002C2C3@gw.wicourts.gov> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/13 X-Sequence-Number: 20060 On Wed, 4 Nov 2009, Kevin Grittner wrote: > Having received no feedback on the preliminary patch I previously > posted, I'll suggest this (fairly minimal) patch. I didn't attempt to > deal with the distributed transaction issue, since it seemed pretty > messy and I wasn't sure the fix was worth the mess it would make. As > far as I can see, it should fix the OP's problem, although it would be > nice to get a confirmation of that. > I've commited a modified version of this patch to HEAD only, because changing this behavior could break peoples applications. I extended the check for the connection already being closed to the other connection methods. There's no reason commit/rollback are special here. I also needed to fix a regression testcase which was violating this rule. Kris Jurka