pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: PGXAConnection and autocommit problem
Date: Thu, 10 Feb 2011 11:45:09 +0200
Message-ID: <201102101145.10201.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <4D53A504.1030406@enterprisedb.com>
References: <C7BBBF767EA7F7458E9537859DB4FBFB014A0A@se-ex024.groupinfra.com>
	<C7BBBF767EA7F7458E9537859DB4FBFB014B92@se-ex024.groupinfra.com>
	<4D53A504.1030406@enterprisedb.com>

Στις Thursday 10 February 2011 10:42:44 ο/η Heikki Linnakangas έγραψε:
> 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.
> 

I remember my similar case one year ago :
http://archives.postgresql.org/message-id/201003021629.07368.achill%40matrix.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: 
> 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
> 



-- 
Achilleas Mantzios



view thread (10+ messages)  latest in thread

Message-ID: <201102101145.10201.achill@matrix.gatewaynet.com>
Permalink:  ../201102101145.10201.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/201102101145.10201.achill@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: PGXAConnection and autocommit problem
  In-Reply-To: <201102101145.10201.achill@matrix.gatewaynet.com>
  References: <C7BBBF767EA7F7458E9537859DB4FBFB014A0A@se-ex024.groupinfra.com> <C7BBBF767EA7F7458E9537859DB4FBFB014B92@se-ex024.groupinfra.com> <4D53A504.1030406@enterprisedb.com> <201102101145.10201.achill@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox