Re: patternsel() and histogram_selectivity() and the hard cutoff of 100

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: patternsel() and histogram_selectivity() and the hard cutoff of 100
Дата
Msg-id 25674.1205022834@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: patternsel() and histogram_selectivity() and the hard cutoff of 100  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> "Gregory Stark" <stark@enterprisedb.com> writes:
>> So I had a thought about how to soften the controversial hard cutoff of 100
>> for the use of the histogram selectivity. Instead of switching 100% one way or
>> the other between the two heuristics why not calculate both and combine them.
>> The larger the sample size from the histogram the more we can weight the
>> histogram calculation. The smaller the histogram size the more we weight the
>> heuristic.

> Incidentally I hacked up a patch to do this:

Applied with revisions --- I thought it was better to let the caller of
histogram_selectivity make the decision about how to combine the
estimates, instead of hard-wiring the choice into that subroutine.
        regards, tom lane


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

Предыдущее
От: Jan Urbański
Дата:
Сообщение: Re: Google Summer of Code 2008
Следующее
От: Oleg Bartunov
Дата:
Сообщение: Re: Google Summer of Code 2008