BUG #2178: NOT IN command don't work

From: "Daniel Afonso Heisler" <daniel(at)solis(dot)coop(dot)br>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2178: NOT IN command don't work
Date: 2006-01-17 22:00:28
Message-ID: 20060117220028.2DB9DF0B01@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2178
Logged by: Daniel Afonso Heisler
Email address: daniel(at)solis(dot)coop(dot)br
PostgreSQL version: 8.1.X
Operating system: Linux
Description: NOT IN command don't work
Details:

When i run the following query, postgreSQL return TRUE.
# SELECT true WHERE 1 NOT IN (2,3);

But, when i run the next query, it don't return TRUE
# SELECT true WHERE 1 NOT IN (2,NULL,3);

In theory, that is not correctly. The operator IN work with normally. See
the next example:

# SELECT true WHERE 1 IN (1,2,NULL,3);

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-01-17 22:12:09 Re: Huge number of disk writes after migration to 8.1
Previous Message Robert Treat 2006-01-17 21:58:23 improper estimates even with high statistic values