mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 22:56:55 +08:00
Fixed CI
This commit is contained in:
@@ -34,6 +34,10 @@ $node->pgbench(
|
|||||||
|
|
||||||
sub idx_scan
|
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;");
|
$node->safe_psql("postgres", "SELECT idx_scan FROM pg_stat_user_indexes WHERE indexrelid = 'tst_v_idx'::regclass;");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user