Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 05121B5D80A for ; Sun, 19 Jun 2011 21:40:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 52895-08 for ; Mon, 20 Jun 2011 00:40:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id CE742B5D801 for ; Sun, 19 Jun 2011 21:40:04 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 31FB410D; Sun, 19 Jun 2011 20:40:05 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YCfQ0QEdJn9F; Sun, 19 Jun 2011 20:40:04 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id 4FAC237; Sun, 19 Jun 2011 20:40:04 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 5C477AE975; Mon, 20 Jun 2011 08:40:03 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZSluOoMMG-Tq; Mon, 20 Jun 2011 08:39:58 +0800 (WST) Received: from [10.1.1.3] (124-169-169-221.dyn.iinet.net.au [124.169.169.221]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id E2887AE49B; Mon, 20 Jun 2011 08:39:57 +0800 (WST) Message-ID: <4DFE96DB.9050207@postnewspapers.com.au> Date: Mon, 20 Jun 2011 08:39:55 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: "Pilling, Michael" CC: Kevin Grittner , pgsql-bugs@postgresql.org Subject: Re: BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED] References: <4DFE481F020000250003E8EA@gw.wicourts.gov> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/176 X-Sequence-Number: 30555 On 20/06/2011 8:30 AM, Pilling, Michael wrote: > I was looking at that page but didn't read the detail because I thought > the information was in the table and the detail was just textual examples. I do think that adding "IS DISTINCT FROM" and "IS NULL / IS NOT NULL" to the summary table would be helpful, with a superscript * linking to the note about null handling below. In general, though, there's only so much information that can be condensed into the brief summary and tables. Reading the documentation in detail is a really, really good idea. It'll tell you a lot about Pg and about SQL in general. I've generally found it really helpful and not at all long-winded. It's pretty much how I learned to use relational databases. In this case the documentation even has a big box-out saying: "Tip: Some applications might expect that expression = NULL returns true if expression evaluates to the null value." ... that carries on to explain about NULLs. -- Craig Ringer Tech-related writing at http://soapyfrogs.blogspot.com/