Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 4CDEF133740B for ; Thu, 10 Feb 2011 04:42:59 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 92486-04 for ; Thu, 10 Feb 2011 08:42:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og125.obsmtp.com (exprod7og125.obsmtp.com [64.18.2.28]) by mail.postgresql.org (Postfix) with ESMTP id 936451337BC8 for ; Thu, 10 Feb 2011 04:42:51 -0400 (AST) Received: from source ([74.125.82.53]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKTVOlCozSRQvCfUfR60/88tGai49Wt+rG@postini.com; Thu, 10 Feb 2011 00:42:52 PST Received: by wwi18 with SMTP id 18so1135559wwi.22 for ; Thu, 10 Feb 2011 00:42:49 -0800 (PST) Received: by 10.216.160.84 with SMTP id t62mr17482946wek.69.1297327369003; Thu, 10 Feb 2011 00:42:49 -0800 (PST) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi [88.195.122.240]) by mx.google.com with ESMTPS id c54sm615671wer.30.2011.02.10.00.42.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 10 Feb 2011 00:42:47 -0800 (PST) Message-ID: <4D53A504.1030406@enterprisedb.com> Date: Thu, 10 Feb 2011 10:42:44 +0200 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.1.16) Gecko/20101226 Icedove/3.0.11 MIME-Version: 1.0 To: "Maurin, Marion" CC: rsmogura , "pgsql-jdbc@postgresql.org" Subject: Re: RE : PGXAConnection and autocommit problem References: , In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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: 201102/62 X-Sequence-Number: 21460 On 10.02.2011 09:50, Maurin, Marion wrote: > Yes, I think I saw that too, that the autocommit shouldn't be set from outside. But shouldn't the driver itself set it to false at the beginning of the transaction? > ________________________________________ > De : pgsql-jdbc-owner@postgresql.org [pgsql-jdbc-owner@postgresql.org] de la part de rsmogura [rsmogura@softperience.eu] > Date d'envoi : mercredi 9 février 2011 21:13 > À : pgsql-jdbc@postgresql.org > Objet : Re: [JDBC] PGXAConnection and autocommit problem > > Driver should prevent set auto commit, or change it value in any case. > I thought I saw exception in code preventing this. > On Wed, 9 Feb 2011 14:28:44 +0000, Maurin, Marion wrote: >> Hi, >> >> I hope I'm in the right mailing list. >> >> I'm currently facing a problem with Postgresql XA connections. I'm >> trying to have my transactions working but no rollback seems to take >> effect. After searching, I think the problem is about the autoCommit >> mode which is set to true even during the transaction. It's quite possible that there's a bug somewhere in the XA driver - we've had several bugs related to autocommit and XA in the past. And I think this one is still pending: http://archives.postgresql.org/message-id/4D01DFA8.3060207@emaze.net. Could it be related? Can you create a small self-contained test program to reproduce the issue, and post it to the list? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com