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

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: *very* inefficient choice made by the planner (regarding
Дата
Msg-id 20040610101410.X21002@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: *very* inefficient choice made by the planner (regarding  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-performance
On Thu, 10 Jun 2004, Stephan Szabo wrote:

>
> On Thu, 10 Jun 2004, Jean-Luc Lachance wrote:
>
> > I agree, but it should be a simple rewrite. No?
>
> It's NULLs inside the subselect that are the issue.
>
> select 1 in (select a from foo)
> select exists ( select 1 from foo where a=1)
>
> If foo.a contains a row with NULL but no rows containing a 1, the above
> give different results (unknown and exists) and IIRC, exists cannot

Erm that exists should have been false

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: *very* inefficient choice made by the planner (regarding
Следующее
От: Nick Trainor
Дата:
Сообщение: ORDER BY user defined function performance issues