Re: generalizing the planner knobs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: generalizing the planner knobs
Дата
Msg-id 11805.1133455782@sss.pgh.pa.us
обсуждение исходный текст
Ответ на generalizing the planner knobs  (Neil Conway <neilc@samurai.com>)
Список pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> ... ISTM that a simple improvement to what we have now
> would allow for a wider range of planner hints with only minor changes:
> we could replace the enable_XXX variables with a set of variables that
> would add an arbitrary constant to the estimated cost of each type of
> query node. (Alternatively, an arbitrary multiplier could be specified;
> I'm not sure which would be better.)

I think the multiplier would be better, because it'd avoid the problem
you mention later that useful values would be dependent on the planner's
cost units.  Also, one could sanely allow a multiplier less than one,
so as to favor instead of penalize a particular plan type.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: generalizing the planner knobs
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: [pgsql-www] Upcoming PG re-releases