Remove wal_keep_segments from default configuration in PostgresNode.pm
This is only used in the pg_rewind tests, so only set it there. It's better if other tests run closer to a default configuration. Author: Michael Paquier <michael.paquier@gmail.com>
This commit is contained in:
parent
0f53934164
commit
5eb8bf2d42
|
@ -119,6 +119,11 @@ sub setup_cluster
|
||||||
# Initialize master, data checksums are mandatory
|
# Initialize master, data checksums are mandatory
|
||||||
$node_master = get_new_node('master' . ($extra_name ? "_${extra_name}" : ''));
|
$node_master = get_new_node('master' . ($extra_name ? "_${extra_name}" : ''));
|
||||||
$node_master->init(allows_streaming => 1);
|
$node_master->init(allows_streaming => 1);
|
||||||
|
# Set wal_keep_segments to prevent WAL segment recycling after enforced
|
||||||
|
# checkpoints in the tests.
|
||||||
|
$node_master->append_conf('postgresql.conf', qq(
|
||||||
|
wal_keep_segments = 20
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
sub start_master
|
sub start_master
|
||||||
|
|
|
@ -435,7 +435,6 @@ sub init
|
||||||
}
|
}
|
||||||
print $conf "max_wal_senders = 5\n";
|
print $conf "max_wal_senders = 5\n";
|
||||||
print $conf "max_replication_slots = 5\n";
|
print $conf "max_replication_slots = 5\n";
|
||||||
print $conf "wal_keep_segments = 20\n";
|
|
||||||
print $conf "max_wal_size = 128MB\n";
|
print $conf "max_wal_size = 128MB\n";
|
||||||
print $conf "shared_buffers = 1MB\n";
|
print $conf "shared_buffers = 1MB\n";
|
||||||
print $conf "wal_log_hints = on\n";
|
print $conf "wal_log_hints = on\n";
|
||||||
|
|
Loading…
Reference in New Issue