Re: LIMIT confuses the planner

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LIMIT confuses the planner
Дата
Msg-id 21519.1237774737@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LIMIT confuses the planner  (marcin mank <marcin.mank@gmail.com>)
Список pgsql-performance
marcin mank <marcin.mank@gmail.com> writes:
> I hit an interestinhg paper on n_distinct calculation:
> http://www.pittsburgh.intel-research.net/people/gibbons/papers/distinct-values-chapter.pdf

I don't think we're quite ready to make ANALYZE read every row of a
table in order to estimate n_distinct.  It is an interesting paper
in that it says that you have to do that in order to get *provably*
good estimates, but I've not abandoned the hope of getting *usually*
good estimates without so much work.

            regards, tom lane

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

Предыдущее
От: marcin mank
Дата:
Сообщение: Re: LIMIT confuses the planner
Следующее
От: Greg Smith
Дата:
Сообщение: Re: "iowait" bug?