There is a table in the db, whose index_scan count from pg_stat_all_tables for this table seems to be too high, there are not that many queries being executed against this table. Wondering how this count can be too high.
The db is up since 80 days so I assume these are cumulative stats since last startup?
Could it be possible that a query is using this table joining other tables, and this table is being probed multiple times in loops. Below is a googled part of the plan showing parallel index only scan happened 5 times for the index. I am assuming something of this sort is happening making the index scan count going too high. Please let me know if that might be the case.
-> Parallel Index Only Scan using us_geonames_type_idx on us_geonames (cost=0.43..24401.17rows=559758 width=4) (actual time=0.036..90.309rows=447806 loops=5)
Is there any other possible explanation for this high count. I see updates do increase this count but there are not those many updates. Inserts and deletes do not seem to touch this counter.