Re: jdbc xa support

From: Michael Allman <msa(at)allman(dot)ms>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: jdbc xa support
Date: 2005-07-24 04:28:01
Message-ID: 20050724002628.H55910@yvyyl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message emergency.shower@gmail.com 2005-07-24 21:58:44 Timestamp weirdness
Previous Message Oliver Jowett 2005-07-23 23:28:06 Re: jdbc xa support