Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 26CC19FB360 for ; Sun, 8 Oct 2006 22:55:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 08529-04 for ; Mon, 9 Oct 2006 01:54:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id C733C9FB2A9 for ; Sun, 8 Oct 2006 22:54:55 -0300 (ADT) Received: (qmail 30623 invoked from network); 8 Oct 2006 22:14:28 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 8 Oct 2006 22:14:28 -0000 Message-ID: <45297847.7060304@ejurka.com> Date: Sun, 08 Oct 2006 16:14:31 -0600 From: Kris Jurka User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Ludovic Orban CC: pgsql-jdbc@postgresql.org Subject: Re: Postgres XA support References: <45288F3C.1030906@ejurka.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200610/46 X-Sequence-Number: 15929 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