Re: Intermittent regression test failure from index-only scans patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Intermittent regression test failure from index-only scans patch
Date
Msg-id 2760.1318362388@sss.pgh.pa.us
Whole thread Raw
In response to Re: Intermittent regression test failure from index-only scans patch  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes:
> On Sun, Oct 9, 2011 at 06:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Robert Haas <robertmhaas@gmail.com> writes:
>>> Should we have another counter for heap fetches avoided? �Seems like that could be useful to know.

>> Hm. �I'm hesitant to add another per-table (or per index?) statistics
>> counter because of the resultant bloat in the stats file.

> We certainly need *some* way to figure out if this has been used,
> IMHO. So yeah, if the current way doesn't scale enough, we need to
> think of some other way. But I'm not sure one more counter would
> really bloat it that bad? OTOH, repeating that reasoning enough time
> will eventually make it enough to care about...

You can already tell whether it's happening by comparing idx_tup_read
versus idx_tup_fetch.  Now that measure does conflate some things, like
whether the tuple was not read at all or was read and rejected as not
visible, but I'm not at all convinced that another counter is worth its
weight.  If invisible tuples are a significant part of the table then
index-only scanning isn't going to be very useful to you anyway.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Dumping roles improvements?
Next
From: Bruce Momjian
Date:
Subject: Re: Dumping roles improvements?