diff --git a/contrib/bloom/blscan.c b/contrib/bloom/blscan.c index bf455e579f..0c5fb725e8 100644 --- a/contrib/bloom/blscan.c +++ b/contrib/bloom/blscan.c @@ -15,6 +15,7 @@ #include "access/relscan.h" #include "bloom.h" #include "miscadmin.h" +#include "pgstat.h" #include "storage/bufmgr.h" /* @@ -114,6 +115,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++) {