Count contrib/bloom index scans in pgstat view.
authorPeter Geoghegan <pg@bowt.ie>
Wed, 13 Nov 2024 01:57:45 +0000 (20:57 -0500)
committerPeter Geoghegan <pg@bowt.ie>
Wed, 13 Nov 2024 01:57:45 +0000 (20:57 -0500)
commit93063e2e429b03e8b06295ede0f0ebb5199b656a
treea025196563249684d40757217c4c9eca123d79e7
parentbfeeb065ea2c870cf4d9dfcd552d23d72432e692
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).
contrib/bloom/blscan.c