Re: [HACKERS] Subselects are in CVS... - Mailing list pgsql-hackers

From ocie@paracel.com
Subject Re: [HACKERS] Subselects are in CVS...
Date
Msg-id 9802131814.AA28986@dolomite.paracel.com
Whole thread Raw
In response to Subselects are in CVS...  ("Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>)
List pgsql-hackers
Impressive, just one comment:

> 5. I need in advice: if subquery introduced with NOT IN doesn't return
>    any tuples then qualification is failed, yes ?

I think this is backwards.  Consider the following statements:

"1 not in (1,2)" FALSE
"1 not in (2)" TRUE
"1 not in ()" ?

I would tend to think that the ? should be TRUE.  I.E. every value
qualifies as not in an empty list of tuples.  The second item was
true, so why should removing the 2 from the list make the statement
false?

Ocie Mitchell

pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] Unsubscribe
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] v6.3 snapshot core dump