From: Kris Jurka <jurka@ejurka.com>
To: Ludovic Orban <lorban@bitronix.be>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Postgres XA support
Date: Sun, 08 Oct 2006 16:14:31 -0600
Message-ID: <45297847.7060304@ejurka.com> (raw)
In-Reply-To: <c016d00b0610080656m4eb3bd1aye1c96b3ace6b8812@mail.gmail.com>
References: <c016d00b0610071603q63c01a99q8bd165f3cb6a2f04@mail.gmail.com>
<45288F3C.1030906@ejurka.com>
<c016d00b0610080656m4eb3bd1aye1c96b3ace6b8812@mail.gmail.com>
Ludovic Orban wrote:
> From the comments I saw in the source, transaction interleaving, join
> and suspend/resume are still not supported and forget is still
> unimplemented. This means you cannot mix local and global
> transactions, cannot support EJBs with REQUIRES_NEW CMT declaration
> and can get into troubles during crash recovery.
>
> I think it was Michael Allman that said the engine wasn't able to
> properly support XA in Aug 2005 and unfortunately it seems that things
> haven't changed much since then.
>
> I'm afraid you still have some work to do on the engine before you can
> implement XA in JDBC.
Well there are two perspectives on this. If you need a way of
implementing multi-resource transactions, than the simple two phase
commit approach implemented in postgresql is adequate. If full XA
compliance is required then postgresql comes up far short. Yes, backend
development has stalled on this. Backend developers were not aware of
the full XA requirements and when informed said, "We implemented all
this two phase stuff and now you're telling us it's inadequate!" So
they've moved on and the ability to do things like transaction
interleaving are very complicated given the postgresql backend model, so
I wouldn't hold my breath on things changing anytime soon.
Kris Jurka
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: jurka@ejurka.com, lorban@bitronix.be
Subject: Re: Postgres XA support
In-Reply-To: <45297847.7060304@ejurka.com>
References: <c016d00b0610071603q63c01a99q8bd165f3cb6a2f04@mail.gmail.com> <45288F3C.1030906@ejurka.com> <c016d00b0610080656m4eb3bd1aye1c96b3ace6b8812@mail.gmail.com> <45297847.7060304@ejurka.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