mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
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).
This commit is contained in:
parent
5411e82138
commit
e493ea866e
@ -121,6 +121,7 @@ blgetbitmap(IndexScanDesc scan, TIDBitmap *tbm)
|
|||||||
*/
|
*/
|
||||||
bas = GetAccessStrategy(BAS_BULKREAD);
|
bas = GetAccessStrategy(BAS_BULKREAD);
|
||||||
npages = RelationGetNumberOfBlocks(scan->indexRelation);
|
npages = RelationGetNumberOfBlocks(scan->indexRelation);
|
||||||
|
pgstat_count_index_scan(scan->indexRelation);
|
||||||
|
|
||||||
for (blkno = BLOOM_HEAD_BLKNO; blkno < npages; blkno++)
|
for (blkno = BLOOM_HEAD_BLKNO; blkno < npages; blkno++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user