Re: EXCEPT performace

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: EXCEPT performace
Дата
Msg-id 23047.1004983024@sss.pgh.pa.us
обсуждение исходный текст
Ответ на EXCEPT performace  ("K. Ari Krupnikov" <ari@cogsci.ed.ac.uk>)
Список pgsql-general
"K. Ari Krupnikov" <ari@cogsci.ed.ac.uk> writes:
> I noticed an unexpected difference in performance between seemingly equivalent queries:
> SELECT id FROM short_table EXCEPT SELECT id FROM long_table;

> and

> SELECT id FROM short_table EXCEPT
>     (SELECT id FROM short_table JOIN long_table
>      ON short_table.id = long_table.id);

But they're not equivalent.  Consider what happens when NULLs are
present in both tables.

            regards, tom lane

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

Предыдущее
От: "Johnny J\xF8rgensen"
Дата:
Сообщение: Re: Function problems redux
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Referring a table in another database