Content-Length: 271168 | pFad | http://github.com/postgrespro/postgres/commit/93063e2e429b03e8b06295ede0f0ebb5199b656a

02 Count contrib/bloom index scans in pgstat view. · postgrespro/postgres@93063e2 · GitHub
Skip to content

Commit 93063e2

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 bfeeb06 commit 93063e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/bloom/blscan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "access/relscan.h"
1616
#include "bloom.h"
1717
#include "miscadmin.h"
18+
#include "pgstat.h"
1819
#include "storage/bufmgr.h"
1920

2021
/*
@@ -114,6 +115,7 @@ blgetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
114115
*/
115116
bas = GetAccessStrategy(BAS_BULKREAD);
116117
npages = RelationGetNumberOfBlocks(scan->indexRelation);
118+
pgstat_count_index_scan(scan->indexRelation);
117119

118120
for (blkno = BLOOM_HEAD_BLKNO; blkno < npages; blkno++)
119121
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/93063e2e429b03e8b06295ede0f0ebb5199b656a

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy