postgres.git / summary / log / commit / refs

commit    7af6d13061ee00924f555bcb77bb2499f1aa03f8
Author:   Peter Geoghegan <pg@bowt.ie>
Date:     Wed Nov 13 01:57:43 2024 +0000
First released in: 18.0, 13.18, 14.15, 15.10, 16.6, 17.2

    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).


contrib/bloom/blscan.c | 1 + 1 file changed, 1 insertion(+) 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++) { [parent: a6fa869cfa4e]