pg_createsubscriber: Fix error complaining about the wrong thing
authorÁlvaro Herrera <[email protected]>
Fri, 31 Oct 2025 16:43:15 +0000 (17:43 +0100)
committerÁlvaro Herrera <[email protected]>
Fri, 31 Oct 2025 16:43:15 +0000 (17:43 +0100)
commit11144915e101eff94556192f5f18f6ac133da43e
treed504d5b0c50fcc6f566e32bd3bb3029b581343d5
parent8a27d418f8fc08b62f371c1b167efbfbf0a2a24e
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 <[email protected]>
Backpatch-through: 17
src/bin/pg_basebackup/pg_createsubscriber.c