pgsql: pg_createsubscriber: Fix error complaining about the wrong thing - Mailing list pgsql-committers

From Álvaro Herrera
Subject pgsql: pg_createsubscriber: Fix error complaining about the wrong thing
Date
Msg-id E1vEsbx-004QDT-10@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
pg_createsubscriber: Fix error complaining about the wrong thing

The code updates the system identifier, then runs pg_walreset; if the
latter fails, it complains about the former, which makes no sense.
Change the error message to complain about the right thing.

Noticed while reviewing a patch touching nearby code.

Author: Álvaro Herrera <alvherre@kurilemu.de>
Backpatch-through: 17

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/14044eb25866113147ae82631f1e9259e5317cae

Modified Files
--------------
src/bin/pg_basebackup/pg_createsubscriber.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pgsql: doc: rewrite random_page_cost description
Next
From: Álvaro Herrera
Date:
Subject: pgsql: pg_createsubscriber: reword dry-run log messages