pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: 2 phase commit with FDW
Date: Fri, 18 Feb 2022 08:24:31 -0500
Message-ID: <4b3f8e55-99ae-710b-37aa-742097961f52@gmail.com> (raw)
In-Reply-To: <b578cbbc-2999-7842-a88e-43aa4847b635@gmail.com>
References: <b578cbbc-2999-7842-a88e-43aa4847b635@gmail.com>

On 2/17/22 13:10, Mladen Gogala wrote:
>
> Hi!
>
> I am getting the following error when trying to PREPARE transaction 
> which updates both local and foreign table:
>
> 2/17/22 12:48:00:657 EST] 00000128 RegisteredRes E   WTRN0046E: An 
> attempt by the transaction manager to call prepare on a transactional 
> resource has resulted in an error. The error code was XAER_RMFAIL. The 
> exception stack trace follows: org.postgresql.xa.PGXAException: Error 
> preparing transaction. prepare xid={XidImpl: formatId(57415344), 
> gtrid_length(36), bqual_length(54),
> data(0000017f08cc3aea00000001232c3afce8abf609478378ca6ac9d4bddbfea3e4efa55cf30000017f08cc3aea00000001232c3afce8abf609478378ca6ac9d4bddbfea3e4efa55cf3000000010000000000000000000000000002)}
>         at 
> org.postgresql.xa.PGXAConnection.prepare(PGXAConnection.java:365)
>
> There are no errors is all the tables are local. It seems that 
> postgres_fdw is incompatible with the XA protocol. Is there a way 
> around it? If not, we will need yet another code change and another 
> data source.
>
> Regards
>
Is there anybody on this list who can tell me whether foreign tables can 
participate in 2-phase commit or not? My version is 14.2 on Oracle Linux 
8.5.

Regards


-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

view thread (3+ messages)  latest in thread

Message-ID: <4b3f8e55-99ae-710b-37aa-742097961f52@gmail.com>
Permalink:  ../4b3f8e55-99ae-710b-37aa-742097961f52@gmail.com/
Also on:    postgresql.org/message-id/4b3f8e55-99ae-710b-37aa-742097961f52@gmail.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-general@postgresql.org
  Cc: gogala.mladen@gmail.com
  Subject: Re: 2 phase commit with FDW
  In-Reply-To: <4b3f8e55-99ae-710b-37aa-742097961f52@gmail.com>
  References: <b578cbbc-2999-7842-a88e-43aa4847b635@gmail.com> <4b3f8e55-99ae-710b-37aa-742097961f52@gmail.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