Re: IN vs EXISTS equivalence

Поиск
Список
Период
Сортировка
От Decibel!
Тема Re: IN vs EXISTS equivalence
Дата
Msg-id DD52A3AC-9ED8-47F4-89D8-9D70A8B2DB87@decibel.org
обсуждение исходный текст
Ответ на Re: IN vs EXISTS equivalence  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: IN vs EXISTS equivalence  (Gregory Stark <stark@enterprisedb.com>)
Re: IN vs EXISTS equivalence  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Aug 8, 2008, at 3:23 PM, Tom Lane wrote:
> * has no set operations (UNION etc), grouping, set-returning functions
> in the SELECT list, LIMIT, or a few other funny cases


Couldn't union/union all be treated as

EXISTS(a)
OR EXISTS(b)
...

Or am I missing some detail with NULLS?

Personally, I'd rather write it as separate EXISTS clauses rather  
than using UNION, but perhaps others have a different preference...
-- 
Decibel!, aka Jim C. Nasby, Database Architect  decibel@decibel.org
Give your computer some brain candy! www.distributed.net Team #1828



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: proposal: UTF8 to_ascii function
Следующее
От: Decibel!
Дата:
Сообщение: Re: Visibility Groups