diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c index 3ed86480be2..f880380ce4e 100644 --- a/src/backend/replication/logical/launcher.c +++ b/src/backend/replication/logical/launcher.c @@ -1195,6 +1195,13 @@ ApplyLauncherWakeup(void) { if (LogicalRepCtx->launcher_pid != 0) kill(LogicalRepCtx->launcher_pid, SIGUSR1); + else + { + if (max_logical_replication_workers == 0) + ereport(WARNING, + errmsg("Logical replication is currently disabled"), + errhint("\"%s\" is 0.", "max_logical_replication_workers")); + } } /*