From: Kris Jurka <books@ejurka.com>
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: taktos <taktos@gmail.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: commit and rollback don't throw exceptions when they should
Date: Wed, 18 Nov 2009 06:21:38 -0500 (EST)
Message-ID: <alpine.BSO.2.00.0911180619360.13019@leary.csoft.net> (raw)
In-Reply-To: <4AF1AE71020000250002C2C3@gw.wicourts.gov>
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>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, Kevin.Grittner@wicourts.gov, taktos@gmail.com, oliver@opencloud.com
Subject: Re: commit and rollback don't throw exceptions when they should
In-Reply-To: <alpine.BSO.2.00.0911180619360.13019@leary.csoft.net>
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> <alpine.BSO.2.00.0911180619360.13019@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox