Re: the big picture for index-only scans

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Simon Riggs <simon(at)2ndQuadrant(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: the big picture for index-only scans
Date: 2011-05-11 14:45:08
Message-ID: 201105111445.p4BEj8529217@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> writes:
> > On 10.05.2011 20:15, Simon Riggs wrote:
> >> I can picture that. Regrettably, I can also picture the accesses to
> >> the visibility map, the maintenance operations on the VM that are
> >> needed for this and the contention that both of those will cause.
>
> > I agree that we need to do tests to demonstrate that there's a gain from
> > the patch, once we have a patch to test. I would be very surprised if
> > there isn't, but that just means the testing is going to be easy.
>
> I think Simon's point is that showing a gain on specific test cases
> isn't a sufficient argument. What we need to know about this sort of
> change is what is the distributed overhead that is going to be paid by
> *everybody*, whether their queries benefit from the optimization or not.
> And what fraction of real-world queries really do benefit, and to what
> extent. Isolated test cases (undoubtedly chosen to show off the
> optimization) are not adequate to form a picture of the overall cost and
> benefit.

Yes, I assume we are going to need the same kind of tests we did for
other invasive patches like serializable isolation level and hot
standby.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-05-11 15:14:18 Re: PGC_S_DEFAULT is inadequate
Previous Message Tom Lane 2011-05-11 14:40:58 Re: the big picture for index-only scans