pgsql: Make pg_createsubscriber warn if publisher has two-phase commit - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Make pg_createsubscriber warn if publisher has two-phase commit
Date
Msg-id E1sNzDq-003gsL-FR@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make pg_createsubscriber warn if publisher has two-phase commit enabled.

pg_createsubscriber currently always sets up logical replication
with two-phase commit disabled.  Improving that is not going to
happen for v17.  In the meantime, document the deficiency, and
adjust pg_createsubscriber so that it will emit a warning if
the source installation has max_prepared_transactions > 0.

Hayato Kuroda (some mods by Amit Kapila and me), per complaint from
Noah Misch

Discussion: https://postgr.es/m/20240623062157.97.nmisch@google.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/917754557cc0002bb042341720a7ce18fe5b0a09

Modified Files
--------------
doc/src/sgml/ref/pg_createsubscriber.sgml   | 11 ++++++++++
src/bin/pg_basebackup/pg_createsubscriber.c | 34 ++++++++++++++---------------
2 files changed, 28 insertions(+), 17 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Make pg_createsubscriber more wary about quoting connection para
Next
From: Tomas Vondra
Date:
Subject: pgsql: Add pg_combinebackup --copy option