From: Robert Haas Date: Thu, 10 Jun 2021 13:43:35 +0000 (-0400) Subject: Adjust new test case to set wal_keep_segments. X-Git-Tag: REL_11_13~112 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=534b9be805b4eac83d059c577021ec57df896c08;p=thirdparty%2Fpostgresql.git Adjust new test case to set wal_keep_segments. 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.horikyota.ntt@gmail.com --- diff --git a/src/test/recovery/t/025_stuck_on_old_timeline.pl b/src/test/recovery/t/025_stuck_on_old_timeline.pl index bc479aba4ca..6fca25b7095 100644 --- a/src/test/recovery/t/025_stuck_on_old_timeline.pl +++ b/src/test/recovery/t/025_stuck_on_old_timeline.pl @@ -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;