]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pg_createsubscriber: Fix error complaining about the wrong thing
authorÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 31 Oct 2025 16:43:15 +0000 (17:43 +0100)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 31 Oct 2025 16:43:15 +0000 (17:43 +0100)
commit59aeb693f67fc15dfa58e2fdada2a70ce1004660
tree2ec252e1072a363832c4fb18a8fa1f5c1e49a9df
parent0941188056934cb6ae6de391bc57837620f16c26
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
src/bin/pg_basebackup/pg_createsubscriber.c