pg_recvlogical: Rename --two-phase and --failover options.
authorPeter Eisentraut <[email protected]>
Sun, 29 Jun 2025 15:02:35 +0000 (17:02 +0200)
committerPeter Eisentraut <[email protected]>
Sun, 29 Jun 2025 15:19:58 +0000 (17:19 +0200)
commit6d12d5a433c9c8cbf92fc19afd2a3465f275564c
tree3466cc27a171030a62b174533a92454ada533ebb
parent50fd428b2b9cb036c9c5982b56443d7e28119707
pg_recvlogical: Rename --two-phase and --failover options.

This commit renames the pg_recvlogical options --two-phase and
--failover to --enable-two-phase and --enable-failover, respectively.
The new names distinguish these enabling options from action options
like --start and --create-slot, while clearly indicating their purpose
to enable specific logical slot features.

The option --failover is new in PostgreSQL 18 (commit cf2655a9029), so
no compatibility break there.  The option --two-phase has existed
since PostgreSQL 15 (commit cda03cfed6b), so for compatibility we keep
the old option name --two-phase around as deprecated.

Also note that pg_createsubscriber has acquired an --enable-two-phase
option, so this increases consistency across tools.

Co-authored-by: Masahiko Sawada <[email protected]>
Discussion: https://postgr.es/m/a28f66df-1354-4709-8d63-932ded4cac35@eisentraut.org
doc/src/sgml/logicaldecoding.sgml
doc/src/sgml/ref/pg_recvlogical.sgml
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/t/030_pg_recvlogical.pl