diff options
author | Peter Geoghegan <pg@bowt.ie> | 2024-11-12 20:57:43 -0500 |
---|---|---|
committer | Peter Geoghegan <pg@bowt.ie> | 2024-11-12 20:57:43 -0500 |
commit | 7af6d13061ee00924f555bcb77bb2499f1aa03f8 (patch) | |
tree | a317bf0bee3024bb7092a9aebc7567d7a26d6076 /contrib/bloom/blscan.c | |
parent | a6fa869cfa4e8f0226f22f717f5b0aa5eed60588 (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).
Diffstat (limited to 'contrib/bloom/blscan.c')
-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 0a303a49b24..6a90c7a7175 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++) { |