aboutsummaryrefslogtreecommitdiff
path: root/src/test/perl/PostgresNode.pm
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/test/perl/PostgresNode.pm
parent05cd12ed5bc74c853a161c5a138a0cb6f9b0cb8a (diff)
downloadpostgresql-f6d6d2920d2cddc4b381cbbf2915db9d985d20a9.tar.gz
postgresql-f6d6d2920d2cddc4b381cbbf2915db9d985d20a9.zip
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/test/perl/PostgresNode.pm')
-rw-r--r--src/test/perl/PostgresNode.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm
index d8be1bd3e12..932478183a8 100644
--- a/src/test/perl/PostgresNode.pm
+++ b/src/test/perl/PostgresNode.pm
@@ -415,7 +415,6 @@ sub init
if ($params{allows_streaming})
{
- print $conf "wal_level = replica\n";
print $conf "max_wal_senders = 5\n";
print $conf "wal_keep_segments = 20\n";
print $conf "max_wal_size = 128MB\n";
@@ -424,6 +423,11 @@ sub init
print $conf "hot_standby = on\n";
print $conf "max_connections = 10\n";
}
+ else
+ {
+ print $conf "wal_level = minimal\n";
+ print $conf "max_wal_senders = 0\n";
+ }
if ($TestLib::windows_os)
{