aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/RewindTest.pm
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-11-02 12:38:59 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-11-02 12:38:59 -0400
commit5eb8bf2d42676523143c1c76ba584bcdcc584f3e (patch)
tree9dd340ab78414073fcf79f029d65253a2d56971d /src/bin/pg_rewind/RewindTest.pm
parent0f53934164d37682fd6a6d87d57008f9ca03e3d0 (diff)
downloadpostgresql-5eb8bf2d42676523143c1c76ba584bcdcc584f3e.tar.gz
postgresql-5eb8bf2d42676523143c1c76ba584bcdcc584f3e.zip
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>
Diffstat (limited to 'src/bin/pg_rewind/RewindTest.pm')
-rw-r--r--src/bin/pg_rewind/RewindTest.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/pg_rewind/RewindTest.pm b/src/bin/pg_rewind/RewindTest.pm
index 76ce295cef7..e6041f38a50 100644
--- a/src/bin/pg_rewind/RewindTest.pm
+++ b/src/bin/pg_rewind/RewindTest.pm
@@ -119,6 +119,11 @@ sub setup_cluster
# Initialize master, data checksums are mandatory
$node_master = get_new_node('master' . ($extra_name ? "_${extra_name}" : ''));
$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