mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +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:
@@ -52,8 +52,15 @@ extern bool XactReadOnly;
|
||||
extern bool DefaultXactDeferrable;
|
||||
extern bool XactDeferrable;
|
||||
|
||||
/* Asynchronous commits */
|
||||
extern bool XactSyncCommit;
|
||||
typedef enum
|
||||
{
|
||||
SYNCHRONOUS_COMMIT_OFF, /* asynchronous commit */
|
||||
SYNCHRONOUS_COMMIT_LOCAL, /* wait for only local flush */
|
||||
SYNCHRONOUS_COMMIT_ON /* wait for local flush and sync rep */
|
||||
} SyncCommitLevel;
|
||||
|
||||
/* Synchronous commit level */
|
||||
extern int synchronous_commit;
|
||||
|
||||
/* Kluge for 2PC support */
|
||||
extern bool MyXactAccessedTempRel;
|
||||
|
||||
Reference in New Issue
Block a user