Re: Planner reluctant to start from subquery

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Planner reluctant to start from subquery
Дата
Msg-id 4611.1138827188@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Planner reluctant to start from subquery  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-performance
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Since you were so confident it couldn't be the outer join, I went
> looking for what else I changed at the same time.  I eliminated the code
> referencing that table, which contained an OR.  I've seen ORs cause
> nasty problems with optimizers in the past.  I took out the OR in the
> where clause, without eliminating that last outer join, and it optimized
> fine.

I don't think that OR is relevant either, since again it's present in
both the well-optimized and badly-optimized variants that you posted.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Planner reluctant to start from subquery
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Index Usage using IN