pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Postgresql XA prepare() method behaviour
3+ messages / 2 participants
[nested] [flat]

* Postgresql XA prepare() method behaviour
@ 2010-11-30 18:42  Francesco Degrassi <francesco.degrassi@emaze.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Francesco Degrassi @ 2010-11-30 18:42 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Postgresql XA prepare() method behaviour
@ 2010-12-10 08:07  Francesco Degrassi <francesco.degrassi@emaze.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Francesco Degrassi @ 2010-12-10 08:07 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Postgresql XA prepare() method behaviour
@ 2010-12-22 21:09  Degrassi Francesco <francesco.degrassi@emaze.net>
  parent: Francesco Degrassi <francesco.degrassi@emaze.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Degrassi Francesco @ 2010-12-22 21:09 UTC (permalink / raw)
  To: pgsql-jdbc

Can anyone provide feedback on this ?
I'm adding a shortened URL to the original thread to make it easily accessible
from the web archives of the ML.
 
http://bit.ly/elrpFE
 
Regards
 
--
Francesco Degrassi
Emaze Networks S.p.A.
www.emaze.net



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2010-12-22 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-30 18:42 Postgresql XA prepare() method behaviour Francesco Degrassi <francesco.degrassi@emaze.net>
2010-12-10 08:07 Postgresql XA prepare() method behaviour Francesco Degrassi <francesco.degrassi@emaze.net>
2010-12-22 21:09 ` Degrassi Francesco <francesco.degrassi@emaze.net>

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