mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Merge synchronous_replication setting into synchronous_commit.
This means one less thing to configure when setting up synchronous replication, and also avoids some ambiguity around what the behavior should be when the settings of these variables conflict. Fujii Masao, with additional hacking by me.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
#include "utils/guc.h"
|
||||
|
||||
#define SyncRepRequested() \
|
||||
(synchronous_replication && max_wal_senders > 0)
|
||||
(max_wal_senders > 0 && synchronous_commit == SYNCHRONOUS_COMMIT_ON)
|
||||
|
||||
/* syncRepState */
|
||||
#define SYNC_REP_NOT_WAITING 0
|
||||
@@ -28,7 +28,6 @@
|
||||
#define SYNC_REP_WAIT_COMPLETE 2
|
||||
|
||||
/* user-settable parameters for synchronous replication */
|
||||
extern bool synchronous_replication;
|
||||
extern char *SyncRepStandbyNames;
|
||||
|
||||
/* called by user backend */
|
||||
|
Reference in New Issue
Block a user