Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0C1B8632346 for ; Wed, 9 Jun 2010 05:56:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 49959-05 for ; Wed, 9 Jun 2010 08:56:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og127.obsmtp.com (exprod7og127.obsmtp.com [64.18.2.210]) by mail.postgresql.org (Postfix) with SMTP id 819CC632316 for ; Wed, 9 Jun 2010 05:56:08 -0300 (ADT) Received: from source ([209.85.219.220]) by exprod7ob127.postini.com ([64.18.6.12]) with SMTP ID DSNKTA9XJ9xgkQjXQjfXItMBun/CAPrD6RIx@postini.com; Wed, 09 Jun 2010 01:56:08 PDT Received: by ewy20 with SMTP id 20so1100097ewy.23 for ; Wed, 09 Jun 2010 01:56:05 -0700 (PDT) Received: by 10.213.10.195 with SMTP id q3mr12249450ebq.78.1276073765361; Wed, 09 Jun 2010 01:56:05 -0700 (PDT) Received: from [192.168.1.117] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id 14sm3973421ewy.6.2010.06.09.01.56.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 09 Jun 2010 01:56:04 -0700 (PDT) Message-ID: <4C0F5723.7040208@enterprisedb.com> Date: Wed, 09 Jun 2010 11:56:03 +0300 From: Heikki Linnakangas Organization: EnterpriseDB User-Agent: Mozilla/5.0 (X11; U; Linux i686; fi-FI; rv:1.9.1.9) Gecko/20100515 Iceowl/1.0b1 Icedove/3.0.4 MIME-Version: 1.0 To: Michal Szymanski CC: pgsql-jdbc@postgresql.org Subject: Re: Postgres and XA support problem. References: <0d312389-b556-4f83-866b-005981b4eed8@j8g2000yqd.googlegroups.com> In-Reply-To: <0d312389-b556-4f83-866b-005981b4eed8@j8g2000yqd.googlegroups.com> 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=-4.2 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3 X-Spam-Level: X-Archive-Number: 201006/54 X-Sequence-Number: 20624 On 09/06/10 10:54, Michal Szymanski wrote: > Hi, > We are trying to find TransactionManager for our project and on our > short list is Atomikos (http://www.atomikos.com) but during reading > 'Known problem' section we have found: > > 'PostgreSQL XA support is limited in what it can do; using Postgresql > is not recommended and not supported. If you do choose to use it, see > this forum post for some of the problems' and it was link to this > http://fogbugz.atomikos.com/default.asp?community.6.1503.6 > > Is it a real bug or lack of Postgres functinality ? I'd call it a lack of functionality. PostgreSQL doesn't support calling PREPARE TRANSACTION from a different connection than BEGIN. The JTA spec requires that functionality, but it's a pretty common limitation in DBMSs because it doesn't fit well with the one transaction per connection architecture that most DBMSs have. So in practice all transaction managers have an option to work around that, according to the forum post it's called "com.atomikos.icatch.threaded_2pc" in Atomikos. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com