aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2024-11-12 20:57:41 -0500
committerPeter Geoghegan <pg@bowt.ie>2024-11-12 20:57:41 -0500
commit05aac2e83752b5d5e88638949b05017be6b8f1db (patch)
tree62e5dd21ba21ad5826b55e790ff77b04f426caf8
parentb242aba02666db82390fdb5a4734efde77156f61 (diff)
downloadpostgresql-05aac2e83752b5d5e88638949b05017be6b8f1db.tar.gz
postgresql-05aac2e83752b5d5e88638949b05017be6b8f1db.zip
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).
-rw-r--r--contrib/bloom/blscan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/bloom/blscan.c b/contrib/bloom/blscan.c
index 6cc7d07164a..5953bf092ed 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++)
{