Adjust new test case to set wal_keep_size.
authorRobert Haas <rhaas@postgresql.org>
Thu, 10 Jun 2021 13:08:30 +0000 (09:08 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 10 Jun 2021 13:47:25 +0000 (09:47 -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.horikyota.ntt@gmail.com

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

index 0d96bb3c15be318c84eaab84659684dbe52c5240..25c2dff43730a418e8c1a98782d70e33d520fdba 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_size=128MB
 ));
 $node_primary->start;