diff options
author | Simon Riggs <simon@2ndQuadrant.com> | 2012-01-24 20:22:37 +0000 |
---|---|---|
committer | Simon Riggs <simon@2ndQuadrant.com> | 2012-01-24 20:22:37 +0000 |
commit | 443b4821f1649bc617c5ce1f6f3ffc65842a8930 (patch) | |
tree | edbbc03b007575020733aff01cc137b62b3b5509 /src/backend/utils/misc/guc.c | |
parent | 89dda5f2979fbe277809369ff88832ab39e83ff0 (diff) | |
download | postgresql-443b4821f1649bc617c5ce1f6f3ffc65842a8930.tar.gz postgresql-443b4821f1649bc617c5ce1f6f3ffc65842a8930.zip |
Add new replication mode synchronous_commit = 'write'.
Replication occurs only to memory on standby, not to disk,
so provides additional performance if user wishes to
reduce durability level slightly. Adds concept of multiple
independent sync rep queues.
Fujii Masao and Simon Riggs
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r-- | src/backend/utils/misc/guc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 9fc96b2126a..ec8f2f2309b 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -370,11 +370,12 @@ static const struct config_enum_entry constraint_exclusion_options[] = { }; /* - * Although only "on", "off", and "local" are documented, we + * Although only "on", "off", "write", and "local" are documented, we * accept all the likely variants of "on" and "off". */ static const struct config_enum_entry synchronous_commit_options[] = { {"local", SYNCHRONOUS_COMMIT_LOCAL_FLUSH, false}, + {"write", SYNCHRONOUS_COMMIT_REMOTE_WRITE, false}, {"on", SYNCHRONOUS_COMMIT_ON, false}, {"off", SYNCHRONOUS_COMMIT_OFF, false}, {"true", SYNCHRONOUS_COMMIT_ON, true}, @@ -3164,7 +3165,7 @@ static struct config_enum ConfigureNamesEnum[] = }, &synchronous_commit, SYNCHRONOUS_COMMIT_ON, synchronous_commit_options, - NULL, NULL, NULL + NULL, assign_synchronous_commit, NULL }, { |