pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Heikki Linnakangas <heikki@enterprisedb.com>
Cc: joël Winteregg <joel.winteregg@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Cc: Ludovic Orban <ludovic.orban@gmail.com>
Subject: Re: XAResource implementation
Date: Wed, 14 Nov 2007 17:11:23 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0711140423050.12400@leary.csoft.net> (raw)
In-Reply-To: <473A2AB3.2040701@enterprisedb.com>
References: <1193736934.5565.40.camel@hatman>
	<4727420A.4060209@enterprisedb.com>
	<1193757567.5565.46.camel@hatman>
	<47275A50.2050201@enterprisedb.com>
	<47275BA6.3030200@enterprisedb.com>
	<1194819933.5545.100.camel@hatman>
	<47382418.604@enterprisedb.com>
	<1194939010.5505.24.camel@hatman>
	<4739D5FB.9080202@enterprisedb.com>
	<Pine.BSO.4.64.0711131301130.21066@leary.csoft.net>
	<473A2AB3.2040701@enterprisedb.com>



On Tue, 13 Nov 2007, Heikki Linnakangas wrote:

> Oh, I had forgotten about that. The difference is the close() between the 
> getConnection()s.
>
> I started having second doubts about that case you posted in June, so I 
> tested what Derby does if you call getConnection() twice, without a close in 
> between. You get an error ("Cannot close a connection while a global 
> transaction is still active."), so at least they consider it incorrect as 
> well.

I'm not super happy that explicit close vs implicit close has different 
transactional behavior, but people really shouldn't be writing code like 
this, so I've applied your patch to 8.1, 8.2 and HEAD.

Kris Jurka




view thread (18+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0711140423050.12400@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0711140423050.12400@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0711140423050.12400@leary.csoft.net

 · 

reply

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, heikki@enterprisedb.com, joel.winteregg@gmail.com, ludovic.orban@gmail.com
  Subject: Re: XAResource implementation
  In-Reply-To: <Pine.BSO.4.64.0711140423050.12400@leary.csoft.net>
  References: <1193736934.5565.40.camel@hatman> <4727420A.4060209@enterprisedb.com> <1193757567.5565.46.camel@hatman> <47275A50.2050201@enterprisedb.com> <47275BA6.3030200@enterprisedb.com> <1194819933.5545.100.camel@hatman> <47382418.604@enterprisedb.com> <1194939010.5505.24.camel@hatman> <4739D5FB.9080202@enterprisedb.com> <Pine.BSO.4.64.0711131301130.21066@leary.csoft.net> <473A2AB3.2040701@enterprisedb.com> <Pine.BSO.4.64.0711140423050.12400@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