mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
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
This commit is contained in:
parent
86d33987e8
commit
f2a0d5808c
@ -96,7 +96,7 @@ $node_standby->promote;
|
|||||||
# creating a RECOVERYHISTORY.
|
# creating a RECOVERYHISTORY.
|
||||||
my $primary_archive = $node_primary->archive_dir;
|
my $primary_archive = $node_primary->archive_dir;
|
||||||
$caughtup_query =
|
$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)
|
$node_primary->poll_query_until('postgres', $caughtup_query)
|
||||||
or die "Timed out while waiting for archiving of 00000002.history";
|
or die "Timed out while waiting for archiving of 00000002.history";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user