Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C26DB1337B4F for ; Tue, 30 Nov 2010 14:52:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 44593-06 for ; Tue, 30 Nov 2010 18:52:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from deflector.emaze.net (mail.emaze.net [213.178.220.4]) by mail.postgresql.org (Postfix) with ESMTP id 080971335B36 for ; Tue, 30 Nov 2010 14:52:31 -0400 (AST) Received: from localhost (deflector.emaze.net [127.0.0.1]) by deflector.emaze.net (Postfix) with ESMTP id C7604180A69 for ; Tue, 30 Nov 2010 19:42:42 +0100 (CET) X-Virus-Scanned: by bofh at emaze.net Received: from deflector.emaze.net ([127.0.0.1]) by localhost (mail.emaze.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xxdfWSksnvnV for ; Tue, 30 Nov 2010 19:42:42 +0100 (CET) Received: from [192.168.1.197] (unknown [192.168.1.197]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by deflector.emaze.net (Postfix) with ESMTPSA id AD031180A67 for ; Tue, 30 Nov 2010 19:42:42 +0100 (CET) Message-ID: <4CF545AB.4090207@emaze.net> Date: Tue, 30 Nov 2010 19:42:51 +0100 From: Francesco Degrassi User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Postgresql XA prepare() method behaviour X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/116 X-Sequence-Number: 21237 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