diff options
| author | Andrew Dunstan | 2024-07-17 14:35:50 +0000 |
|---|---|---|
| committer | Andrew Dunstan | 2024-07-17 14:43:07 +0000 |
| commit | b06fe880da1423063104ac42214b04245c3277a4 (patch) | |
| tree | 6cf07a6b4e1f50eed24f05c4b88b9d278121052c /src/test | |
| parent | 69bdee12e4437d3681de584de8ecced1fda4bcb5 (diff) | |
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/test')
| -rw-r--r-- | src/test/recovery/t/002_archiving.pl | 2 |
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 4d784bdf554..96011b5ee6e 100644 --- a/src/test/recovery/t/002_archiving.pl +++ b/src/test/recovery/t/002_archiving.pl @@ -67,7 +67,7 @@ $node_standby->promote; # creating a RECOVERYHISTORY. my $primary_archive = $node_master->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_master->poll_query_until('postgres', $caughtup_query) or die "Timed out while waiting for archiving of 00000002.history"; |
