aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2024-07-17 10:35:50 -0400
committerAndrew Dunstan <andrew@dunslane.net>2024-07-17 10:44:20 -0400
commitf2a0d5808c246e556efbe3df0fb2be7841e3c988 (patch)
tree4aebe0bdfb0e2d5d043556be9a663edca74549fe /src
parent86d33987e8b0364b468c9b40c5f2a0a1aed87ef1 (diff)
downloadpostgresql-f2a0d5808c246e556efbe3df0fb2be7841e3c988.tar.gz
postgresql-f2a0d5808c246e556efbe3df0fb2be7841e3c988.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/test/recovery/t/002_archiving.pl2
1 files changed, 1 insertions, 1 deletions
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";