Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XxwSx-0006TY-NS for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Dec 2014 11:26:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XxwSx-0008Pp-7H for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Dec 2014 11:26:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XxwSw-0008Mx-5N for pgsql-bugs@postgresql.org; Mon, 08 Dec 2014 11:26:58 +0000 Received: from mx6-phx2.redhat.com ([209.132.183.39]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XxwSp-0004Q4-St for pgsql-bugs@postgresql.org; Mon, 08 Dec 2014 11:26:55 +0000 Received: from zmail16.collab.prod.int.phx2.redhat.com (zmail16.collab.prod.int.phx2.redhat.com [10.5.83.18]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sB8BQlJQ013733 for ; Mon, 8 Dec 2014 06:26:47 -0500 Date: Mon, 8 Dec 2014 06:26:46 -0500 (EST) From: Ondrej Chaloupka To: pgsql-bugs Message-ID: <465999501.22868325.1418038006701.JavaMail.zimbra@redhat.com> In-Reply-To: <795083152.22867806.1418037905715.JavaMail.zimbra@redhat.com> Subject: Incorrect return code for error on call of commit during 2PC MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.5.82.12] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF34 (Linux)/8.0.6_GA_5922) Thread-Topic: Incorrect return code for error on call of commit during 2PC Thread-Index: MD34Kjj/ahnn9BdX6a0PaBvYq89cfQ== X-Pg-Spam-Score: -4.2 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, it seems that PostgreSQL jdbc driver returns incorrect code during on call of commit during 2PC. Currently the driver returns XAER_RMERR. I expect that it's this call https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/xa/PGXAConnection.java#L528 But the XA spec says for XAER_RMERR that -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs