pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Allman <msa@allman.ms>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: jdbc xa support
Date: Sun, 24 Jul 2005 00:28:01 -0400 (EDT)
Message-ID: <20050724002628.H55910@yvyyl> (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>

On Sun, 24 Jul 2005, Heikki Linnakangas wrote:

> On Sat, 23 Jul 2005, Michael Allman 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.

Cool.  It would be a nice optimization to incorporate in the driver when 
it becomes available in the backend.

Michael



view thread (27+ messages)

Message-ID: <20050724002628.H55910@yvyyl>
Permalink:  ../20050724002628.H55910@yvyyl/
Also on:    postgresql.org/message-id/20050724002628.H55910@yvyyl

 · 

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: msa@allman.ms, hlinnaka@iki.fi
  Subject: Re: jdbc xa support
  In-Reply-To: <20050724002628.H55910@yvyyl>
  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> <20050724002628.H55910@yvyyl>

* 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