pgvector.git / summary / log / commit / refs
commit 9897ba7f643d705c6cf91f0d3020f2a51441bc25
Author: Andrew Kane <andrew@ankane.org>
Date: Sun Mar 12 20:13:04 2023 +0000
Fixed CI
test/t/007_inserts.pl | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/t/007_inserts.pl b/test/t/007_inserts.pl
index cc9e8e91..86155449 100644
--- a/test/t/007_inserts.pl
+++ b/test/t/007_inserts.pl
@@ -34,6 +34,10 @@ $node->pgbench(
sub idx_scan
{
+ # stats do not update instantaneously
+ # https://www.postgresql.org/docs/current/monitoring-stats.html#MONITORING-STATS-VIEWS
+ sleep(1);
+ $node->safe_psql("postgres", "SELECT pg_stat_clear_snapshot();");
$node->safe_psql("postgres", "SELECT idx_scan FROM pg_stat_user_indexes WHERE indexrelid = 'tst_v_idx'::regclass;");
}
[parent: bb75ce2cf2e2]