pgsql: pg_createsubscriber: Fix error complaining about the wrong thing

From: Álvaro Herrera <alvherre(at)kurilemu(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_createsubscriber: Fix error complaining about the wrong thing
Date: 2025-10-31 17:08:25
Message-ID: E1vEsbx-004QDO-0o@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)kurilemu(dot)de>
Backpatch-through: 17

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/11144915e101eff94556192f5f18f6ac133da43e

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

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2025-10-31 17:50:48 pgsql: pg_createsubscriber: reword dry-run log messages
Previous Message Bruce Momjian 2025-10-31 15:37:18 Re: pgsql: doc: rewrite random_page_cost description