aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2024-08-16 00:58:32 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2024-08-16 00:58:32 +0300
commite3ec9dc1bf4983fcedb6f43c71ea12ee26aefc7a (patch)
tree25a173f940ab0a7b069210c6b29dcd2f04d66966
parente2ed7e32271a82179c3f8c7c93ce52ff93c6dd3c (diff)
downloadpostgresql-e3ec9dc1bf4983fcedb6f43c71ea12ee26aefc7a.tar.gz
postgresql-e3ec9dc1bf4983fcedb6f43c71ea12ee26aefc7a.zip
Add missing wait_for_catchup() to pg_visibility tap test
e2ed7e32271a introduced check of pg_visibility on standby. This commit adds missing wait_for_catchup() to synchronize standby before querying it.
-rw-r--r--contrib/pg_visibility/t/001_concurrent_transaction.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/pg_visibility/t/001_concurrent_transaction.pl b/contrib/pg_visibility/t/001_concurrent_transaction.pl
index 498ce412d9a..1fdbc62eeda 100644
--- a/contrib/pg_visibility/t/001_concurrent_transaction.pl
+++ b/contrib/pg_visibility/t/001_concurrent_transaction.pl
@@ -47,6 +47,7 @@ my $result = $node->safe_psql("postgres",
ok($result eq "", "pg_check_visible() detects no errors");
# Run pg_check_visible() on standby
+$node->wait_for_catchup($standby);
$result = $standby->safe_psql("postgres",
"SELECT * FROM pg_check_visible('vacuum_test');");