git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e2ed7e3)
Add missing wait_for_catchup() to pg_visibility tap test
2024年8月15日 21:58:32 +0000 (00:58 +0300)
2024年8月15日 21:58:32 +0000 (00:58 +0300)
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 498ce412d9aa56d603b73c23c3a275436b59c4cc..1fdbc62eeda7aa524b7b825751c2116b0d384303 100644 (file)
--- 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');");
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /