diff --git a/src/test/recovery/t/002_archiving.pl b/src/test/recovery/t/002_archiving.pl index a2e012e42da..bc447330e15 100644 --- a/src/test/recovery/t/002_archiving.pl +++ b/src/test/recovery/t/002_archiving.pl @@ -96,7 +96,7 @@ $node_standby->promote; # creating a RECOVERYHISTORY. my $primary_archive = $node_primary->archive_dir; $caughtup_query = - "SELECT size IS NOT NULL FROM pg_stat_file('$primary_archive/00000002.history')"; + "SELECT size IS NOT NULL FROM pg_stat_file('$primary_archive/00000002.history', true)"; $node_primary->poll_query_until('postgres', $caughtup_query) or die "Timed out while waiting for archiving of 00000002.history";