Re: ANALYZE sampling is too good

Поиск
Список
Период
Сортировка
От Florian Pflug
Тема Re: ANALYZE sampling is too good
Дата
Msg-id D1C450BF-DFBF-4330-8C7B-5F8A69BE49D1@phlo.org
обсуждение исходный текст
Ответ на Re: ANALYZE sampling is too good  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: ANALYZE sampling is too good
Список pgsql-hackers
On Dec12, 2013, at 19:29 , Tom Lane <tgl@sss.pgh.pa.us> wrote:
> However ... where this thread started was not about trying to reduce
> the remaining statistical imperfections in our existing sampling method.
> It was about whether we could reduce the number of pages read for an
> acceptable cost in increased statistical imperfection.

True, but Jeff's case shows that even the imperfections of the current
sampling method are larger than what the n_distinct estimator expects.

Making it even more biased will thus require us to rethink how we
obtain a n_distinct estimate or something equivalent. I don't mean that
as an argument against changing the sampling method, just as something
to watch out for.

best regards,
Florian Pflug




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