From: | Greg Smith <greg(at)2ndquadrant(dot)com> |
---|---|
To: | Michael Nolan <htfoot(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: New/Revised TODO? Gathering actual read performance data for use by planner |
Date: | 2011-05-25 14:17:09 |
Message-ID: | 4DDD0F65.5060304@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Michael Nolan wrote:
> Based on last year's discussion of this TODO item, it seems thoughts
> have been focused on estimating how much data is
> being satisfied from PG's shared buffers. However, I think that's
> only part of the problem.
Sure, but neither it nor what you're talking about are the real gating
factor on making an improvement here. Figuring out how to expose all
this information to the optimizer so it can use it when planning is the
hard part. Collecting a read time profile is just one of the many ways
you can estimate what's in cache, and each of the possible methods has
good and bad trade-offs. I've been suggesting that people assume that's
a solved problem--I'm pretty sure what you're proposing was done by Greg
Stark once and a prototype built even--and instead ask what you're going
to do next if you had this data.
> This data would probably need to be kept separately for each table or
> index, as some tables or indexes
> may be mostly or fully in cache or on faster physical media than
> others, although in the absence of other
> data about a specific table or index, data about other relations in
> the same tablespace might be of some use.
This is the important part. Model how the data needs to get stored such
that the optimizer can make decisions using it, and I consider it easy
to figure out how it will get populated later. There are actually
multiple ways to do it, and it may end up being something people plug-in
an implementation that fits their workload into, rather than just having
one available.
--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-05-25 14:24:03 | Re: Volunteering as Commitfest Manager |
Previous Message | Bruce Momjian | 2011-05-25 14:13:30 | Re: tackling full page writes |