Skip to content

Commit e493ea8

Browse files
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 9ee014f, 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).
1 parent 5411e82 commit e493ea8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/bloom/blscan.c

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ blgetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
121121
*/
122122
bas = GetAccessStrategy(BAS_BULKREAD);
123123
npages = RelationGetNumberOfBlocks(scan->indexRelation);
124+
pgstat_count_index_scan(scan->indexRelation);
124125

125126
for (blkno = BLOOM_HEAD_BLKNO; blkno < npages; blkno++)
126127
{

0 commit comments

Comments
 (0)