Adjust new test case to set wal_keep_segments.
authorRobert Haas <[email protected]>
Thu, 10 Jun 2021 13:43:35 +0000 (09:43 -0400)
committerRobert Haas <[email protected]>
Thu, 10 Jun 2021 13:51:00 +0000 (09:51 -0400)
Per buildfarm member conchuela and Kyotaro Horiguchi, it's possible
for the WAL segment that the cascading standby needs to be removed
too quickly. Hopefully this will prevent that.

Kyotaro Horiguchi

Discussion: http://postgr.es/m/20210610.101240.1270925505780628275[email protected]

src/test/recovery/t/025_stuck_on_old_timeline.pl

index 9c8e9fd57d8910137dd595d21dd2973bd870ebd5..75bbef1bcc5b00a93f4bc269d27087dc8839f0a5 100644 (file)
@@ -27,6 +27,7 @@ $perlbin =~ s{\\}{\\\\}g if ($TestLib::windows_os);
 my $archivedir_primary = $node_primary->archive_dir;
 $node_primary->append_conf('postgresql.conf', qq(
 archive_command = '$perlbin "$FindBin::RealBin/cp_history_files" "%p" "$archivedir_primary/%f"'
+wal_keep_segments=8
 ));
 $node_primary->start;