Re: Interesting Query Performance Question

Поиск
Список
Период
Сортировка
От David W Noon
Тема Re: Interesting Query Performance Question
Дата
Msg-id 20101106165354.67ed9532@karnak.local
обсуждение исходный текст
Ответ на Re: Interesting Query Performance Question  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Interesting Query Performance Question  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
On Sat, 06 Nov 2010 11:59:48 -0400, Tom Lane wrote about Re: [ADMIN]
Interesting Query Performance Question:

>In general, NOT IN is hard to optimize because of its weird behavior
>for NULLs.  I'd suggest looking into converting the query to use an
>EXISTS instead.

I have know about that issue for some years, so I always use a column
that has been declared NOT NULL for the sub-query.  Does PostgreSQL not
use that property to bypass the vagaries of NULL in an IN predicate?
--
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Interesting Query Performance Question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Interesting Query Performance Question