diff options
author | Peter Geoghegan <pg@bowt.ie> | 2024-11-12 20:57:39 -0500 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2024-11-12 20:57:39 -0500 |
commit | 16a2bb0793ac269943b0d676bac781e3691e28a0 (patch) | |
tree | bd7ae1c0d77a7dc99d503d2063cdf684b12a74e0 | |
parent | 713b8546aba66be102bdd8b320c06ea3b2813fd9 (diff) |
Count contrib/bloom index scans in pgstat view.
Maintain the pg_stat_user_indexes.idx_scan pgstat counter during
contrib/Bloom index scans.
Oversight in commit 9ee014fc, which added the Bloom index contrib
module.
Author: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
Reviewed-By: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/c48839d881388ee401a01807c686004d@oss.nttdata.com
Backpatch: 13- (all supported branches).
-rw-r--r-- | contrib/bloom/blscan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/bloom/blscan.c b/contrib/bloom/blscan.c index 4c923488bd9..0703ad8525b 100644 --- a/contrib/bloom/blscan.c +++ b/contrib/bloom/blscan.c @@ -121,6 +121,7 @@ blgetbitmap(IndexScanDesc scan, TIDBitmap *tbm) */ bas = GetAccessStrategy(BAS_BULKREAD); npages = RelationGetNumberOfBlocks(scan->indexRelation); + pgstat_count_index_scan(scan->indexRelation); for (blkno = BLOOM_HEAD_BLKNO; blkno < npages; blkno++) { |