pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Pilling, Michael <Michael.Pilling@dsto.defence.gov.au>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]
Date: Mon, 20 Jun 2011 08:39:55 +0800
Message-ID: <4DFE96DB.9050207@postnewspapers.com.au> (raw)
In-Reply-To: <DB2FF420856DB942829BF029A7E3C196029E3CB8@ednex514.dsto.defence.gov.au>
References: <4DFE481F020000250003E8EA@gw.wicourts.gov>
	<DB2FF420856DB942829BF029A7E3C196029E3CB8@ednex514.dsto.defence.gov.au>

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/



view thread (10+ messages)  latest in thread

Message-ID: <4DFE96DB.9050207@postnewspapers.com.au>
Permalink:  ../4DFE96DB.9050207@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4DFE96DB.9050207@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: craig@postnewspapers.com.au, Michael.Pilling@dsto.defence.gov.au, Kevin.Grittner@wicourts.gov
  Subject: Re: BUG #6064: != NULL, <> NULL do not work [sec=UNCLASSIFIED]
  In-Reply-To: <4DFE96DB.9050207@postnewspapers.com.au>
  References: <4DFE481F020000250003E8EA@gw.wicourts.gov> <DB2FF420856DB942829BF029A7E3C196029E3CB8@ednex514.dsto.defence.gov.au> <4DFE96DB.9050207@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox