"IS NOT NULL" != "NOT NULL" - Mailing list pgsql-general

From Sean Chittenden
Subject "IS NOT NULL" != "NOT NULL"
Date
Msg-id 20020111194652.L352@ninja1.internal
Whole thread Raw
Responses Re: "IS NOT NULL" != "NOT NULL"  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Just a question that's stems from curiosity, but:

db=> SELECT COUNT(*) FROM pkg_hosts WHERE timestamp_col NOT NULL;
 count
-------
     0
(1 row)


db=> SELECT COUNT(*) FROM pkg_hosts WHERE timestamp_col IS NOT NULL;
 count
-------
   1242
(1 row)

Why aren't those the same?  Seems like the IS would be an extra word
that's not necessarily needed.  ::shrug::  -sc

--
Sean Chittenden

pgsql-general by date:

Previous
From: jeff.brickley@motorola.com (Jeff)
Date:
Subject: Re: Bad interval external representation
Next
From: jeff.brickley@motorola.com (Jeff)
Date:
Subject: large file limitation