pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Michael Allman <msa@allman.ms>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres XA support
Date: Tue, 16 Aug 2005 12:12:31 +1200
Message-ID: <43012F6F.3020709@opencloud.com> (raw)
In-Reply-To: <20050815183722.E59739@yvyyl>
References: <Pine.OSF.4.61.0508152149170.154732@kosh.hut.fi>
	<20050815183722.E59739@yvyyl>

Michael Allman wrote:

> 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.

You'll need another layer to support all of XA's behaviour -- this was
the discussion about mapping XA connections to physical connections that
happened on the list a while back, wasn't it?

It's probably unnecessary for the first cut, though. What exactly is the
behaviour that you can't support without that extra layer, and is it
needed for common use of XA? Seems to me that you could get away with
just disallowing work on a Connection that has an unprepared XA
transaction pending.

-O



view thread (24+ messages)  latest in thread

Message-ID: <43012F6F.3020709@opencloud.com>
Permalink:  ../43012F6F.3020709@opencloud.com/
Also on:    postgresql.org/message-id/43012F6F.3020709@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, msa@allman.ms, hlinnaka@iki.fi
  Subject: Re: Postgres XA support
  In-Reply-To: <43012F6F.3020709@opencloud.com>
  References: <Pine.OSF.4.61.0508152149170.154732@kosh.hut.fi> <20050815183722.E59739@yvyyl> <43012F6F.3020709@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