Re: Stats collector's idx_blks_hit value is highly misleading in practice

2022-08-10 Thread Sergey Dudoladov
Hi again, Having played with the task for a little while, I am no longer sure it completely justifies the effort involved. The reason being the task requires modifying the buffer pool in one way or the other, which implies (a) significant effort on performance testing and (b) changes in the buffe

Re: Stats collector's idx_blks_hit value is highly misleading in practice

2022-06-29 Thread Sergey Dudoladov
Hello, I would like to get some feedback on that task. > pg_statio_*_tables.idx_blks_hit are highly misleading in practice > because they fail to take account of the difference between internal > pages and leaf pages in B-Tree indexes. I see it is still the case, so the issue is relevant, isn't

Re: Stats collector's idx_blks_hit value is highly misleading in practice

2022-02-04 Thread John Naylor
On Fri, Feb 4, 2022 at 11:19 AM Peter Geoghegan wrote: > > On Thu, Feb 3, 2022 at 7:08 PM John Naylor > wrote: > > Is this a TODO candidate? What would be a succinct title for it? > > I definitely think that it's worth working on. I suppose it follows > that it should go on the TODO list. Added

Re: Stats collector's idx_blks_hit value is highly misleading in practice

2022-02-04 Thread Peter Geoghegan
On Thu, Feb 3, 2022 at 7:08 PM John Naylor wrote: > Is this a TODO candidate? What would be a succinct title for it? I definitely think that it's worth working on. I suppose it follows that it should go on the TODO list. -- Peter Geoghegan

Re: Stats collector's idx_blks_hit value is highly misleading in practice

2022-02-03 Thread John Naylor
On Fri, Oct 30, 2020 at 9:46 PM Tomas Vondra wrote: > > On Fri, Oct 16, 2020 at 03:35:51PM -0700, Peter Geoghegan wrote: > >I suppose that a change like this could end up affecting other things, > >such as EXPLAIN ANALYZE statistics. OTOH we only break out index pages > >separately for bitmap sca

Re: Stats collector's idx_blks_hit value is highly misleading in practice

2020-10-31 Thread Peter Geoghegan
On Fri, Oct 30, 2020 at 6:46 PM Tomas Vondra wrote: > Yeah. The behavior is technically correct, but it's not very useful for > practical purposes. And most people don't even realize it behaves like > this :-( It's possible to compensate for this effect and estimate the > actually "interesting" hi

Re: Stats collector's idx_blks_hit value is highly misleading in practice

2020-10-30 Thread Tomas Vondra
On Fri, Oct 16, 2020 at 03:35:51PM -0700, Peter Geoghegan wrote: It occurs to mean that statistics collector stats such as pg_statio_*_tables.idx_blks_hit are highly misleading in practice because they fail to take account of the difference between internal pages and leaf pages in B-Tree indexes.