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)
commit14044eb25866113147ae82631f1e9259e5317cae
tree967a4a29abccab7c4ceb31b590e53189286bdce0
parent3f0b994cf3a68b74f63cd6f9bde954cc0ae70ceb
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