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

Commit8523a09

Browse files
committed
Stabilize timeline switch regression test.
Commit fef5b47f6b added the regression test to check whether a standby isable to follow a primary on a newer timeline when WAL archiving is enabled.But the buildfarm member florican reported that this test failed becausethe requested WAL segment was removed and replication failed. This is atiming issue. Since neither replication slot is used nor wal_keep_size is setin the test, checkpoint could remove the WAL segment that's still necessaryfor replication.This commit stabilizes the test by setting wal_keep_size.Back-patch to v13 where the regression test that this commit stabilizeswas added.Author: Fujii MasaoDiscussion:https://postgr.es/m/X//PsenxcC50jDzX@paquier.xyz
1 parent94f5292 commit8523a09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/test/recovery/t/004_timeline_switch.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@
7575
# Initialize master node
7676
my$node_master_2 = get_new_node('master_2');
7777
$node_master_2->init(allows_streaming=> 1,has_archiving=> 1);
78+
$node_master_2->append_conf(
79+
'postgresql.conf',qq(
80+
wal_keep_size = 512MB
81+
));
7882
$node_master_2->start;
7983

8084
# Take backup

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp