Content-Length: 260474 | pFad | http://github.com/postgrespro/postgres/commit/f2a0d5808c246e556efbe3df0fb2be7841e3c988

3E Avoid error in recovery test if history file is not yet present · postgrespro/postgres@f2a0d58 · GitHub
Skip to content

Commit f2a0d58

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 86d3398 commit f2a0d58

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
@@ -96,7 +96,7 @@
9696
# creating a RECOVERYHISTORY.
9797
my $primary_archive = $node_primary->archive_dir;
9898
$caughtup_query =
99-
"SELECT size IS NOT NULL FROM pg_stat_file('$primary_archive/00000002.history')";
99+
"SELECT size IS NOT NULL FROM pg_stat_file('$primary_archive/00000002.history', true)";
100100
$node_primary->poll_query_until('postgres', $caughtup_query)
101101
or die "Timed out while waiting for archiving of 00000002.history";
102102

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/f2a0d5808c246e556efbe3df0fb2be7841e3c988

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy