Re: RE:Re: BUG #7556 addition info - Mailing list pgsql-bugs

From Tom Lane
Subject Re: RE:Re: BUG #7556 addition info
Date
Msg-id 18047.1349287139@sss.pgh.pa.us
Whole thread Raw
In response to RE:Re: BUG #7556 addition info  (l1t@tom.com)
List pgsql-bugs
l1t@tom.com writes:
> I think the id columns of table a and b are not null, so the query of "not in" and "not exists" are  equal,they
shoulduse similar plans. 

NOT IN and NOT EXISTS are *not* equivalent.  Per SQL standard, NOT IN
has different (and usually not very desirable) behavior with NULL
values.  The spec-mandated behavior makes it a lot harder to optimize
nicely --- and since you usually don't want what it does anyway, we
haven't tried hard.

            regards, tom lane



pgsql-bugs by date:

Previous
From: sybrain@mail.ru
Date:
Subject: BUG #7582: Could not run PostgreSQL service
Next
From: Maxim Boguk
Date:
Subject: Re: BUG #7573: data loss in corner case using delete_old_cluster.sh (pg_upgrade)