Re: LIMIT confuses the planner

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LIMIT confuses the planner
Дата
Msg-id 3562.1235401789@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LIMIT confuses the planner  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: LIMIT confuses the planner
Список pgsql-performance
Robert Haas <robertmhaas@gmail.com> writes:
> If you left seq_page_cost (which isn't mentioned here) at the default
> value but reduced random_page_cost to 0.1, then you have
> random_page_cost < seq_page_cost.  That's probably Bad.

... well, it's certainly going to push the planner to believe indexscans
are cheaper than sorts no matter what.

The previously noted rowcount estimation problem might be a bigger issue
in this particular case, but I agree this is a Bad Idea.

            regards, tom lane

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: LIMIT confuses the planner
Следующее
От: Kouber Saparev
Дата:
Сообщение: Re: LIMIT confuses the planner