Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5eb8bf2

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'sbetter if other tests run closer to a default configuration.Author: Michael Paquier <michael.paquier@gmail.com>
1 parent0f53934 commit5eb8bf2

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
substart_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)

[8]ページ先頭

©2009-2025 Movatter.jp