mirror of
https://github.com/postgres/postgres.git
synced 2025-12-19 17:02:53 +03:00
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 (commitcf2655a902), so no compatibility break there. The option --two-phase has existed since PostgreSQL 15 (commitcda03cfed6), 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 <sawada.mshk@gmail.com> Discussion: https://postgr.es/m/a28f66df-1354-4709-8d63-932ded4cac35@eisentraut.org
This commit is contained in:
@@ -169,7 +169,7 @@ COMMIT 693
|
||||
$ pg_recvlogical -d postgres --slot=test --drop-slot
|
||||
|
||||
Example 2:
|
||||
$ pg_recvlogical -d postgres --slot=test --create-slot --two-phase
|
||||
$ pg_recvlogical -d postgres --slot=test --create-slot --enable-two-phase
|
||||
$ pg_recvlogical -d postgres --slot=test --start -f -
|
||||
<keycombo action="simul"><keycap>Control</keycap><keycap>Z</keycap></keycombo>
|
||||
$ psql -d postgres -c "BEGIN;INSERT INTO data(data) VALUES('5');PREPARE TRANSACTION 'test';"
|
||||
|
||||
Reference in New Issue
Block a user