From: Alexander Korotkov Date: Thu, 15 Aug 2024 21:58:32 +0000 (+0300) Subject: Add missing wait_for_catchup() to pg_visibility tap test X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=e3ec9dc1bf4983fcedb6f43c71ea12ee26aefc7a;p=users%2Fc2main%2Fpostgres.git 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. --- diff --git a/contrib/pg_visibility/t/001_concurrent_transaction.pl b/contrib/pg_visibility/t/001_concurrent_transaction.pl index 498ce412d9..1fdbc62eed 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');");