I agree, but it should be a simple rewrite. No?

x IS NULL/IS NOT NULL AND/OR NOT EXISTS


Tom Lane wrote:

Jean-Luc Lachance <[EMAIL PROTECTED]> writes:

If the two statments are functionally equivalent, why can't PG rewrite the "NOT IN" version into the more efficient "NOT EXISTS"?


They're not equivalent.  In particular, the behavior in the presence of
NULLs is quite different.

                        regards, tom lane



---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
   (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to