summaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/guc.c
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2017-01-14 17:14:56 +0100
committerMagnus Hagander <magnus@hagander.net>2017-01-14 17:14:56 +0100
commitf6d6d2920d2cddc4b381cbbf2915db9d985d20a9 (patch)
treee4b2a4257a26062513d1239e705d1d45c62b1ff9 /src/backend/utils/misc/guc.c
parent05cd12ed5bc74c853a161c5a138a0cb6f9b0cb8a (diff)
Change default values for backup and replication parameters
This changes the default values of the following parameters: wal_level = replica max_wal_senders = 10 max_replication_slots = 10 in order to make it possible to make a backup and set up simple replication on the default settings, without requiring a system restart. Discussion: https://postgr.es/m/CABUevEy4PR_EAvZEzsbF5s+V0eEvw7shJ2t-AUwbHOjT+yRb3A@mail.gmail.com Reviewed by Peter Eisentraut. Benchmark help from Tomas Vondra.
Diffstat (limited to 'src/backend/utils/misc/guc.c')
-rw-r--r--src/backend/utils/misc/guc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index 5b23dbf4a0e..4e2bd4c496a 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -2315,7 +2315,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&max_wal_senders,
- 0, 0, MAX_BACKENDS,
+ 10, 0, MAX_BACKENDS,
NULL, NULL, NULL
},
@@ -2326,7 +2326,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&max_replication_slots,
- 0, 0, MAX_BACKENDS /* XXX? */ ,
+ 10, 0, MAX_BACKENDS /* XXX? */ ,
NULL, NULL, NULL
},
@@ -3749,7 +3749,7 @@ static struct config_enum ConfigureNamesEnum[] =
NULL
},
&wal_level,
- WAL_LEVEL_MINIMAL, wal_level_options,
+ WAL_LEVEL_REPLICA, wal_level_options,
NULL, NULL, NULL
},