Re: Optimizer generates bad plans.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimizer generates bad plans.
Дата
Msg-id 10856.1032479109@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Optimizer generates bad plans.  (Neil Conway <neilc@samurai.com>)
Ответы Re: Optimizer generates bad plans.  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> Interesting. The inconsistency you're seeing is a result of GEQO. I
> would have hoped that it would have produced a better quality plan
> more often, but apparently not. On my system, the regular query
> optimizer handily beats GEQO for this query: it produces more
> efficienty query plans 100% of the time and takes less time to do so.
> For *this* query at least, raising geqo_threshold would be a good
> idea, but that may not be true universally.

The current GEQO threshold was set some time ago; since then, the
regular optimizer has been improved while the GEQO code hasn't been
touched.  It might well be time to ratchet up the threshold.

Anyone care to do some additional experiments?
        regards, tom lane


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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Optimizer generates bad plans.
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Proposal for resolving casting issues