Skip to content

Commit 5eb8bf2

Browse files
committed
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>
1 parent 0f53934 commit 5eb8bf2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/bin/pg_rewind/RewindTest.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ sub setup_cluster
119119
# Initialize master, data checksums are mandatory
120120
$node_master = get_new_node('master' . ($extra_name ? "_${extra_name}" : ''));
121121
$node_master->init(allows_streaming => 1);
122+
# Set wal_keep_segments to prevent WAL segment recycling after enforced
123+
# checkpoints in the tests.
124+
$node_master->append_conf('postgresql.conf', qq(
125+
wal_keep_segments = 20
126+
));
122127
}
123128

124129
sub start_master

src/test/perl/PostgresNode.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ sub init
435435
}
436436
print $conf "max_wal_senders = 5\n";
437437
print $conf "max_replication_slots = 5\n";
438-
print $conf "wal_keep_segments = 20\n";
439438
print $conf "max_wal_size = 128MB\n";
440439
print $conf "shared_buffers = 1MB\n";
441440
print $conf "wal_log_hints = on\n";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy