Re: possible bug in 8.4 - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: possible bug in 8.4
Date
Msg-id 87tz91l1op.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: possible bug in 8.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: possible bug in 8.4  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Gregory Stark <stark@enterprisedb.com> writes:
>> I think Postgres can't do better because there could be a NULL in the
>> subquery. If there's a NULL in the subquery then no record would match.
>
> Yeah.  NOT IN does not have the right semantics to become an antijoin.

If we noticed that the columns in the subquery are all guaranteed to be not
null could we do it then?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Ask me about EnterpriseDB's RemoteDBA services!


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: possible bug in 8.4
Next
From: Tom Lane
Date:
Subject: Re: INSERT..SELECT with GENERATE_SERIES returns error.