X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D55BA52C97 for ; Mon, 15 Aug 2005 21:12:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75107-04 for ; Tue, 16 Aug 2005 00:12:37 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 01B1E52BD8 for ; Mon, 15 Aug 2005 21:12:35 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1E4p4C-0006OR-CZ; Tue, 16 Aug 2005 12:12:32 +1200 Message-ID: <43012F6F.3020709@opencloud.com> Date: Tue, 16 Aug 2005 12:12:31 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Allman Cc: Heikki Linnakangas , pgsql-jdbc@postgresql.org Subject: Re: Postgres XA support References: <20050815183722.E59739@yvyyl> In-Reply-To: <20050815183722.E59739@yvyyl> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.009 required=5 tests=[AWL=0.009] X-Spam-Level: X-Archive-Number: 200508/97 X-Sequence-Number: 13666 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