Re: unexpected results with NOT IN query - Mailing list pgsql-general

From Tom Lane
Subject Re: unexpected results with NOT IN query
Date
Msg-id 10091.1206026149@sss.pgh.pa.us
Whole thread Raw
In response to unexpected results with NOT IN query  ("Mason Hale" <masonhale@gmail.com>)
List pgsql-general
"Mason Hale" <masonhale@gmail.com> writes:
> I'm getting some unexpected results with a NOT IN query -- this is on 8.2.5.

If there are any NULLs in subscription.last_feed_download_task_id, that
NOT IN will not behave the way you are expecting.  You might want to
filter the nulls out of the subselect result ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Mason Hale"
Date:
Subject: unexpected results with NOT IN query
Next
From: Stephan Szabo
Date:
Subject: Re: unexpected results with NOT IN query