Re: Optimizer : query rewrite and execution plan ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Optimizer : query rewrite and execution plan ?
Дата
Msg-id 2685.1202748282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Optimizer : query rewrite and execution plan ?  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-performance
Simon Riggs <simon@2ndquadrant.com> writes:
> Say if cost of best plan >= N then recheck query for strangeness. If
> anything found, re-plan query.

Whatever makes you think that would be useful?

The usual result of undetected duplicate WHERE clauses is an
*underestimate* of runtime, not an overestimate (because it thinks
too few tuples will be selected).

            regards, tom lane

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

Предыдущее
От: "Linux Guru"
Дата:
Сообщение: Update with Subquery Performance
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Update with Subquery Performance