projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
| inline |
side by side
(parent:
5411e82
)
Count contrib/bloom index scans in pgstat view.
author
Peter Geoghegan
<
[email protected]
>
Wed, 13 Nov 2024 01:57:35 +0000
(20:57 -0500)
committer
Peter Geoghegan
<
[email protected]
>
Wed, 13 Nov 2024 01:57:35 +0000
(20:57 -0500)
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 <
[email protected]
>
Reviewed-By: Peter Geoghegan <
[email protected]
>
Discussion: https://postgr.es/m/
c48839d881388ee401a01807c686004d
@oss.nttdata.com
Back: 13- (all supported branches).
contrib/bloom/blscan.c
|
blob
|
blame
|
history
diff --git
a/contrib/bloom/blscan.c
b/contrib/bloom/blscan.c
index 3c71401c8c6f4050e4ad51d706336c7088299d89..9198c563156e35fa344fab9fa9a1a21c908c28b5 100644
(file)
--- 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++)
{