Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id AF4961337B82 for ; Thu, 10 Feb 2011 05:45:21 -0400 (AST) 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 41875-06 for ; Thu, 10 Feb 2011 09:45:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id 5D83F133616B for ; Thu, 10 Feb 2011 05:45:12 -0400 (AST) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p1A9jAi4093357 for ; Thu, 10 Feb 2011 11:45:10 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p1A9jAcq093356 for pgsql-jdbc@postgresql.org; Thu, 10 Feb 2011 11:45:10 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-jdbc@postgresql.org Subject: Re: PGXAConnection and autocommit problem Date: Thu, 10 Feb 2011 11:45:09 +0200 User-Agent: KMail/1.9.7 References: <4D53A504.1030406@enterprisedb.com> In-Reply-To: <4D53A504.1030406@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201102101145.10201.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201102/63 X-Sequence-Number: 21461 =CE=A3=CF=84=CE=B9=CF=82 Thursday 10 February 2011 10:42:44 =CE=BF/=CE=B7 H= eikki Linnakangas =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > 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 o= f 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=C3=A9vrier 2011 21:13 > > =C3=80 : 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. >=20 > It's quite possible that there's a bug somewhere in the XA driver -=20 > we've had several bugs related to autocommit and XA in the past. >=20 I remember my similar case one year ago : http://archives.postgresql.org/message-id/201003021629.07368.achill%40matri= x.gatewaynet.com Anyways Heikki helped a lot on this one i remember, and also wrote a patch.= Thanx Heikki! > And I think this one is still pending:=20 > http://archives.postgresql.org/message-id/4D01DFA8.3060207@emaze.net.=20 > Could it be related? >=20 > Can you create a small self-contained test program to reproduce the=20 > issue, and post it to the list? >=20 > --=20 > Heikki Linnakangas > EnterpriseDB http://www.enterprisedb.com >=20 =2D-=20 Achilleas Mantzios