pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Francesco Degrassi <francesco.degrassi@emaze.net>
To: pgsql-jdbc@postgresql.org
Subject: Postgresql XA prepare() method behaviour
Date: Tue, 30 Nov 2010 19:42:51 +0100
Message-ID: <4CF545AB.4090207@emaze.net> (raw)

Hello all.
A couple of weeks ago I stumbled upon a strange behaviour of postgresql
jdbc driver that I think was initially identified almost 5 years ago.
The problem i'm referring to is this:

http://archives.postgresql.org/message-id/Pine.OSF.4.61.0602121957130.244416@kosh.hut.fi

It seems to me that the patch never made it into trunk;
the current source from CVS still returns XA_OK from prepare() when the
"PREPARE TRANSACTION" command returns "ROLLBACK" (as is the case when a
statement like "SELECT * FROM table_that_does_not_exists" was executed
in transaction).

I contacted the original author, Heikki Linnakangas, and he told me that
the patch was a little bit messy and that it probably simply got
forgotten, and urged me to raise the question here again, since one way
or another it should be fixed.

Regards

-- 
Francesco Degrassi

Emaze Networks S.p.A
www.emaze.net



view thread (3+ messages)  latest in thread

Message-ID: <4CF545AB.4090207@emaze.net>
Permalink:  ../4CF545AB.4090207@emaze.net/
Also on:    postgresql.org/message-id/4CF545AB.4090207@emaze.net

 · 

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: francesco.degrassi@emaze.net
  Subject: Re: Postgresql XA prepare() method behaviour
  In-Reply-To: <4CF545AB.4090207@emaze.net>
  References: <4CF545AB.4090207@emaze.net>

* 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