This commit is contained in:
Andrew Kane
2023-03-12 13:13:04 -07:00
parent bb75ce2cf2
commit 9897ba7f64

View File

@@ -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;");
}