pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Michael Allman <msa@allman.ms>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc xa support
Date: Sat, 23 Jul 2005 23:28:06 +0000
Message-ID: <42E2D286.2060700@opencloud.com> (raw)
In-Reply-To: <Pine.OSF.4.61.0507240006230.262180@kosh.hut.fi>
References: <20050719193245.D20902@yvyyl>
	<E3F1D1B7-B41C-40C4-9621-60F96363A032@fastcrypt.com>
	<Pine.OSF.4.61.0507201916300.205200@kosh.hut.fi>
	<20050720211921.V54984@yvyyl>
	<Pine.OSF.4.61.0507212140250.34894@kosh.hut.fi>
	<20050721203342.W75792@yvyyl>
	<Pine.OSF.4.61.0507220935150.389171@kosh.hut.fi>
	<20050722144451.T5605@yvyyl>
	<Pine.OSF.4.61.0507231000270.450005@kosh.hut.fi>
	<20050723122637.Y55069@yvyyl>
	<Pine.OSF.4.61.0507240006230.262180@kosh.hut.fi>

Heikki Linnakangas wrote:

>> On a related note, can we get the backend to indicate if a transaction 
>> was read-only when the "PREPARE TRANSACTION" statement is called?  
>> (Also, I believe preparing a read-only transaction should 
>> automatically "commit" it.) We could then return XA_RDONLY from the 
>> driver's prepare() method in that case.  As it is, it either throws an 
>> exception or returns XA_OK.
> 
> 
> It should be possible, but we're already past the feature freeze so 
> it'll have to wait for version 8.2. The backend already keeps track 
> which transactions are read-only, and skips updating the clog for them. 
> That information just needs to be exposed.

If the client uses Connection.setReadOnly() presumably we can track that 
in the driver, which will catch some of the cases at least.

-O



view thread (27+ messages)  latest in thread

Message-ID: <42E2D286.2060700@opencloud.com>
Permalink:  ../42E2D286.2060700@opencloud.com/
Also on:    postgresql.org/message-id/42E2D286.2060700@opencloud.com

 · 

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: oliver@opencloud.com, hlinnaka@iki.fi, msa@allman.ms
  Subject: Re: jdbc xa support
  In-Reply-To: <42E2D286.2060700@opencloud.com>
  References: <20050719193245.D20902@yvyyl> <E3F1D1B7-B41C-40C4-9621-60F96363A032@fastcrypt.com> <Pine.OSF.4.61.0507201916300.205200@kosh.hut.fi> <20050720211921.V54984@yvyyl> <Pine.OSF.4.61.0507212140250.34894@kosh.hut.fi> <20050721203342.W75792@yvyyl> <Pine.OSF.4.61.0507220935150.389171@kosh.hut.fi> <20050722144451.T5605@yvyyl> <Pine.OSF.4.61.0507231000270.450005@kosh.hut.fi> <20050723122637.Y55069@yvyyl> <Pine.OSF.4.61.0507240006230.262180@kosh.hut.fi> <42E2D286.2060700@opencloud.com>

* 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