pg_createsubscriber: Add log message when no publications exist to drop.
authorMasahiko Sawada <[email protected]>
Tue, 14 Oct 2025 18:45:29 +0000 (11:45 -0700)
committerMasahiko Sawada <[email protected]>
Tue, 14 Oct 2025 18:45:29 +0000 (11:45 -0700)
commit74ac377d75135e02064fc4427bec401277b4f60c
tree371d1ea275c9aec150864378b1840ec70e355334
parent8efe982fe2c5b900554d489c0409618638193aef
pg_createsubscriber: Add log message when no publications exist to drop.

When specifying --clean=publication to pg_createsubscriber, it drops
all existing publications with a log message "dropping all existing
publications in database "testdb"". Add a new log message "no
publications found" when there are no publications to drop, making the
progress more transparent to users.

Author: Peter Smith <[email protected]>
Reviewed-by: Masahiko Sawada <[email protected]>
Discussion: https://postgr.es/m/CAHut+Ptm+WJwbbYXhC0s6FP_98KzZCR=5CPu8F8N5uV8P7BpqA@mail.gmail.com
src/bin/pg_basebackup/pg_createsubscriber.c