Re: Subselects open issue Nr. 5 - Mailing list pgsql-hackers

From Zeugswetter Andreas SARZ
Subject Re: Subselects open issue Nr. 5
Date
Msg-id 219F68D65015D011A8E000006F8590C6010A51D8@sdexcsrv1.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> 5. I need in advice: if subquery introduced with NOT IN doesn't return
>    any tuples then qualification is failed, yes ?

Informix treats the subselect as NULL if no rows are returned.
Therefore all parent rows that are not null are returned.

select * from taba where a not in (<a select returning no row>);    --
is same as
select * from taba where a is not null;

Andreas

pgsql-hackers by date:

Previous
From: jwieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] CREATE FUNCTION broken
Next
From: "Thomas G. Lockhart"
Date:
Subject: Re: [PORTS] v6.3 release ToDo list and supported ports