mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
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.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user