Looks great. I wouldn't change a thing in your proposal.
> I am about to implement some changes to the planner/optimizer's cost
> model, following up to the thread on pghackers beginning on 20 Jan.
> The main conclusion of that thread was that we needed to charge more for
> a page fetched nonsequentially than for a page fetched sequentially.
> After further investigation I have concluded that it is also appropriate
> to include explicit modeling of the cost of evaluation of WHERE clauses.
> For example, using the regression database and a query like
>
-- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026