Re: *very* inefficient choice made by the planner (regarding

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: *very* inefficient choice made by the planner (regarding
Дата
Msg-id 25304.1086883145@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: *very* inefficient choice made by the planner (regarding  (Jean-Luc Lachance <jllachan@sympatico.ca>)
Ответы Re: *very* inefficient choice made by the planner (regarding  (Jean-Luc Lachance <jllachan@sympatico.ca>)
Список pgsql-performance
Jean-Luc Lachance <jllachan@sympatico.ca> writes:
> If the two statments are functionally equivalent, why can't PG rewrite
> the "NOT IN" version into the more efficient "NOT EXISTS"?

They're not equivalent.  In particular, the behavior in the presence of
NULLs is quite different.

            regards, tom lane

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

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: *very* inefficient choice made by the planner (regarding
Следующее
От: "Anjan Dave"
Дата:
Сообщение: Re: Database Server Tuning