Re: Is this planner choice easily explained?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is this planner choice easily explained?
Дата
Msg-id 12008.1037892740@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Is this planner choice easily explained?  (Philip Warner <pjw@rhyme.com.au>)
Ответы Re: Is this planner choice easily explained?  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-bugs
Philip Warner <pjw@rhyme.com.au> writes:
> I am trying to understand some apparently odd behaviour with 7.2.1 and
> 7.2.3. Adding a LIMIT statement causes what seems like a very bad choice of
> strategy. The first statement is fine:

Could we see the pg_stats rows for the columns used in these queries?
(You have done a vacuum analyze recently, I trust...)

> If anyone could explain the likely reasons for the choice, I would be very
> interested. Even given the planner estimates, they don't look like sensible
> choices.

Why do you say that?  It's taking a plan estimated at 777 cost units
over one that is estimated at (presumably) 5793 units.

            regards, tom lane

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

Предыдущее
От: Philip Warner
Дата:
Сообщение: Is this planner choice easily explained?
Следующее
От: Philip Warner
Дата:
Сообщение: Re: Is this planner choice easily explained?