X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id CA572D1B18E for ; Fri, 25 Jun 2004 06:21:59 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85333-06 for ; Fri, 25 Jun 2004 09:22:00 +0000 (GMT) Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by svr1.postgresql.org (Postfix) with ESMTP id 52B74D1B1BC for ; Fri, 25 Jun 2004 06:21:57 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 1BdmuA-00085a-0X; Fri, 25 Jun 2004 10:21:55 +0100 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id B0DB0179D3; Fri, 25 Jun 2004 10:21:53 +0100 (BST) Message-ID: <40DBEEB0.40203@archonet.com> Date: Fri, 25 Jun 2004 10:21:52 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: sad Cc: Rosser Schwarz , pgsql-sql@postgresql.org Subject: Re: feature request ? References: <200406250816.47781.sad@bankir.ru> <200406251020.41387.sad@bankir.ru> <40DBE35A.70104@archonet.com> <200406251154.05331.sad@bankir.ru> In-Reply-To: <200406251154.05331.sad@bankir.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/255 X-Sequence-Number: 18200 sad wrote: >>sad wrote: >> >>>On Friday 25 June 2004 09:37, Rosser Schwarz wrote: >>> >>>>On Fri, 25 Jun 2004 08:16:47 +0400, sad wrote: >>>> >>>>>>Very simply, a boolean may have to values: true or false. It's also >>>>>>possible that it's not been set to anything (NULL). >>>>> >>>>>really ? >>>>>what about (13 < NULL)::BOOL >>>> >>>>Per the semantics of NULL, 13 is neither greater than nor less than >>>>NULL. NULL is the *unknown* value; it's impossible to meaningfully >>>>compare it to anything else. Try (NULL = NULL)::boolean. It's NULL, >>>>also. >>> >>>READ THE THREAD BEFORE ANSWER >> >>WHAT MAKES YOU THINK HE HASN'T? > > > I had answered to the proposal to PROHIBIT NULL VALUES Umm - what proposal? Geoffrey wrote: > Very simply, a boolean may have to values: true or false. It's also > possible that it's not been set to anything (NULL). You replied: > really ? > what about (13 < NULL)::BOOL Which is an example where a boolean variable is undefined/not set/null. In reply to you, Rosser Schwarz wrote: > Per the semantics of NULL, 13 is neither greater than nor less than > NULL. NULL is the *unknown* value; it's impossible to meaningfully > compare it to anything else. Try (NULL = NULL)::boolean. It's NULL, > also. > > Since no value, including NULL, is in any way definitively comparable > to NULL -- the unknown value -- comparing to NULL results in ... > unknown. > > Otherwise known as NULL. None of which suggests prohibiting nulls. > >>The key point of argument, and where the problem is with your (13 < >>NULL)::BOOL point is this: > > > IT IS NOT MY PROBLEM !!! it is an EXAMPLE WHY WE CAN NOT PROHIBIT NULLS !!! Umm - who is suggesting prohibiting nulls? I've re-read the entire thread and can't find any such suggestion. Is this one of those occasions where the different dialects of English are causing confusion? -- Richard Huxton Archonet Ltd