Skip to content

Commit 5e578ac

Browse files
committed
Avoid error in recovery test if history file is not yet present
Error was detected when testing use of libpq sessions instead of psql for polling queries. Discussion: https://postgr.es/m/e86b6d2d-20d8-4ac9-9a98-165fff7db886@dunslane.net Backpatch to all live branches
1 parent 3006fd8 commit 5e578ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/recovery/t/002_archiving.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# creating a RECOVERYHISTORY.
7171
my $primary_archive = $node_primary->archive_dir;
7272
$caughtup_query =
73-
"SELECT size IS NOT NULL FROM pg_stat_file('$primary_archive/00000002.history')";
73+
"SELECT size IS NOT NULL FROM pg_stat_file('$primary_archive/00000002.history', true)";
7474
$node_primary->poll_query_until('postgres', $caughtup_query)
7575
or die "Timed out while waiting for archiving of 00000002.history";
7676

0 commit comments

Comments
 (0)