From 88f32b7ca29982f286b61a9d0dd29be4b8a01c25 Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Mon, 4 Apr 2011 23:23:13 +0100 Subject: Avoid assuming there will be only 3 states for synchronous_commit. Also avoid hardcoding the current default state by giving it the name "on" and replace with a meaningful name that reflects its behaviour. Coding only, no change in behaviour. --- src/backend/utils/misc/guc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/utils/misc/guc.c') diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 1f7a7d24f83..2151fde3618 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -355,7 +355,7 @@ static const struct config_enum_entry constraint_exclusion_options[] = { * accept all the likely variants of "on" and "off". */ static const struct config_enum_entry synchronous_commit_options[] = { - {"local", SYNCHRONOUS_COMMIT_LOCAL, false}, + {"local", SYNCHRONOUS_COMMIT_LOCAL_FLUSH, false}, {"on", SYNCHRONOUS_COMMIT_ON, false}, {"off", SYNCHRONOUS_COMMIT_OFF, false}, {"true", SYNCHRONOUS_COMMIT_ON, true}, -- cgit v1.2.3