Re: RE:Re: BUG #7556 addition info

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: RE:Re: BUG #7556 addition info
Дата
Msg-id 18047.1349287139@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE:Re: BUG #7556 addition info  (l1t@tom.com)
Список pgsql-bugs
l1t@tom.com writes:
> I think the id columns of table a and b are not null, so the query of "not in" and "not exists" are  equal,they
shoulduse similar plans. 

NOT IN and NOT EXISTS are *not* equivalent.  Per SQL standard, NOT IN
has different (and usually not very desirable) behavior with NULL
values.  The spec-mandated behavior makes it a lot harder to optimize
nicely --- and since you usually don't want what it does anyway, we
haven't tried hard.

            regards, tom lane



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

Предыдущее
От: sybrain@mail.ru
Дата:
Сообщение: BUG #7582: Could not run PostgreSQL service
Следующее
От: Maxim Boguk
Дата:
Сообщение: Re: BUG #7573: data loss in corner case using delete_old_cluster.sh (pg_upgrade)