Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 177E49FA418 for ; Tue, 5 Dec 2006 00:05:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 07915-02 for ; Tue, 5 Dec 2006 00:05:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from proton.planetargon.com (unknown [198.145.37.35]) by postgresql.org (Postfix) with ESMTP id DD8629F9357 for ; Tue, 5 Dec 2006 00:05:26 -0400 (AST) Received: from [172.16.1.106] (unknown [61.197.227.146]) by proton.planetargon.com (Postfix) with ESMTP id 4D775828173; Mon, 4 Dec 2006 20:05:25 -0800 (PST) In-Reply-To: <26730.1165290547@sss.pgh.pa.us> References: <8C5B026B51B6854CBE88121DBF097A8661E3FC@ehost010-33.exch010.intermedia.net> <25943.1165287166@sss.pgh.pa.us> <26730.1165290547@sss.pgh.pa.us> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <37EAE14E-EAC5-48E7-820B-B628C1B7BCF8@seespotcode.net> Cc: "George Pavlov" , pgsql-sql@postgresql.org Content-Transfer-Encoding: 7bit From: Michael Glaesemann Subject: Re: null values in non-nullable column Date: Tue, 5 Dec 2006 13:05:22 +0900 To: Tom Lane X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/51 X-Sequence-Number: 27007 On Dec 5, 2006, at 12:49 , Tom Lane wrote: > Actually I think this is a bug in the SQL spec :-( The description of > says that output columns are "possibly nullable" if > they're on the nullable side of the outer join, but it's not apparent > that that idea is meant to negate a domain constraint. And yet, if it > does not, then an outer join with a NOT NULL domain column on the > nullable side is just invalid. Very interesting. Thanks for the explanation. I should dig into the spec more. Michael Glaesemann grzm seespotcode net