From 33fed0e2d5754a8adba44122c73779be4d7385bb Mon Sep 17 00:00:00 2001
From: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
Date: Tue, 12 Nov 2024 18:22:11 +0900
Subject: [PATCH v1] Modify to increment the index scan counter for the
bloom filter index.

---
 contrib/bloom/blscan.c | 2 ++
 1 file changed, 2 insertions(+)

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++)
 	{
-- 
2.34.1

