Re: Optimizer Not using the Right plan

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimizer Not using the Right plan
Дата
Msg-id 29382.1196785978@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Optimizer Not using the Right plan  (Pallav Kalva <pkalva@livedatagroup.com>)
Ответы Re: Optimizer Not using the Right plan
Список pgsql-performance
Pallav Kalva <pkalva@livedatagroup.com> writes:
>    why does it have different plans for different values

Because the values occur different numbers of times (or so it thinks
anyway).  If the rowcount estimates are far from reality, perhaps
increasing the statistics target would help.  However, since you
only showed EXPLAIN and not EXPLAIN ANALYZE output, no one can
really tell whether the optimizer did anything wrong here.

            regards, tom lane

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

Предыдущее
От: Mark Mielke
Дата:
Сообщение: Re: RAID arrays and performance
Следующее
От: Matthew
Дата:
Сообщение: Re: RAID arrays and performance