Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A5BB01337BA3 for ; Thu, 21 Apr 2011 14:02:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 38065-03 for ; Thu, 21 Apr 2011 17:02:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mail.postgresql.org (Postfix) with ESMTP id D75681337BDB for ; Thu, 21 Apr 2011 14:01:56 -0300 (ADT) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3LH1tDF020259 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Apr 2011 13:01:55 -0400 Received: from [10.3.113.17] ([10.3.113.17]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p3LH1s54026337; Thu, 21 Apr 2011 13:01:54 -0400 Message-ID: <4DB063AB.1040800@redhat.com> Date: Thu, 21 Apr 2011 18:04:43 +0100 From: Michael Musgrove User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.9 ThunderBrowse/3.3.3 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #5297: Add XATMI C API References: <4DB04E1D.6000301@redhat.com> <24817.1303404224@sss.pgh.pa.us> In-Reply-To: <24817.1303404224@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/176 X-Sequence-Number: 30095 On 04/21/2011 05:43 PM, Tom Lane wrote: > Michael Musgrove writes: >> The response to this issue says it is "Not a bug". Would it be possible >> for someone to provide an indication of how much effort is involved in >> providing XA support in the C API library (libpq)? > What do you consider to be "providing XA support"? XA requires there to > be a transaction manager somewhere, which is not something libpq can > provide since it's dependent on the good graces of its host application. > Maybe there would be some value in teaching libpq to interact with an > external XA manager, but what exactly do you think is required? > > regards, tom lane I am referring to the X/Open specification Distributed Transaction Processing: The XA Specification (pubs.opengroup.org/onlinepubs/009680699/toc.pdf). If postgresql provides a conforming Resource Manager switch then we can include postgresql work along with interactions with other Resource Managers (Oracle, DB2) in the same transaction. For example the equivalent support in Oracle that I am asking for is documented at http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adga1_xa.htm Thanks, Mike