Skip to content

Commit 19584ec

Browse files
committed
Remove synchronous_replication/max_wal_senders cross-check.
This is no longer necessary, and might result in a situation where the configuration file is reloaded (and everything seems OK) but a subsequent restart of the database fails. Per an observation from Fujii Masao.
1 parent b98ac46 commit 19584ec

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,6 @@ PostmasterMain(int argc, char *argv[])
735735
if (max_wal_senders > 0 && wal_level == WAL_LEVEL_MINIMAL)
736736
ereport(ERROR,
737737
(errmsg("WAL streaming (max_wal_senders > 0) requires wal_level \"archive\" or \"hot_standby\"")));
738-
if (strlen(SyncRepStandbyNames) > 0 && max_wal_senders == 0)
739-
ereport(ERROR,
740-
(errmsg("synchronous replication requires WAL streaming (max_wal_senders > 0)")));
741738

742739
/*
743740
* Other one-time internal sanity checks can go here, if they are fast.

0 commit comments

Comments
 (0)