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: Postgres XA support
Date: Mon, 15 Aug 2005 19:01:09 -0400 (EDT)
Message-ID: <20050815183722.E59739@yvyyl> (raw)
In-Reply-To: <Pine.OSF.4.61.0508152149170.154732@kosh.hut.fi>
References: <Pine.OSF.4.61.0508152149170.154732@kosh.hut.fi>

Heikki,

After reviewing my code, I am beginning to doubt that PostgreSQL, even 
with the new two-phase commit support, will support the XA protocol.

Key to the protocol is the ability to start and end the association of 
transactions to threads of control.  In particular, what's bothering me is 
that there appears to be no way to end the transaction association of the 
current postgres connection, either permanently or for suspension. 
Please correct me if I'm wrong.

Thus work performed using the underlying physical connection of a 
PGXAResource unassociated with any transaction will still be performed on 
the connection's transaction.

I'm going to halt my work on the postgres jdbc xa support until I see a 
way out.

I think it might take Postgres implementing the C language xa routines 
from the DTP XA spec to implement XA support at the JDBC level.  If 
postgres supports XA on the backend, then we should be able to implement 
JDBC XA with some simple pass-throughs to stored procedures.  I think this 
is what Oracle does.

I am not at all a C hacker, but the problem is interesting, and if I get 
some time I'll look into hacking up the server-side xa support.  I think 
the difficulty will be directly related to how tightly transactions are 
coupled to threads on the backend.

Michael

On Mon, 15 Aug 2005, Heikki Linnakangas wrote:

> Hi Michael,
>
> What's the status of you XA implementation? Are you still working on it?
>
> - Heikki
>



view thread (24+ messages)  latest in thread

Message-ID: <20050815183722.E59739@yvyyl>
Permalink:  ../20050815183722.E59739@yvyyl/
Also on:    postgresql.org/message-id/20050815183722.E59739@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: Postgres XA support
  In-Reply-To: <20050815183722.E59739@yvyyl>
  References: <Pine.OSF.4.61.0508152149170.154732@kosh.hut.fi> <20050815183722.E59739@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