Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrBtC-0007Ku-Cy for pgsql-sql@arkaria.postgresql.org; Thu, 12 Dec 2013 19:25:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VrBtB-0002io-Sn for pgsql-sql@arkaria.postgresql.org; Thu, 12 Dec 2013 19:25:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrBtA-0002ih-TA for pgsql-sql@postgresql.org; Thu, 12 Dec 2013 19:25:36 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VrBt7-0001R7-JO for pgsql-sql@postgresql.org; Thu, 12 Dec 2013 19:25:36 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VrBt5-00068l-4E for pgsql-sql@postgresql.org; Thu, 12 Dec 2013 11:25:31 -0800 Date: Thu, 12 Dec 2013 11:25:31 -0800 (PST) From: David Johnston To: pgsql-sql@postgresql.org Message-ID: <1386876331115-5783187.post@n5.nabble.com> In-Reply-To: <52A9010D.3070202@ultimeth.com> References: <52A9010D.3070202@ultimeth.com> Subject: Re: NULLs and composite types MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Dean Gibson (DB Administrator)-2 wrote > What's going on? I can provide more detail if requested. Of course, an > obvious workaround is to use in a VIEW: > > ... NULLIF( location, ROW( NULL, NULL )::"GeoPosition" ) ... > > but I'd like to know the cause. Cannot test right now but the core issue is that IS NULL on a record type evaluates both the scalar whole and the sub-components. Try using IS [NOT] DISTINCT FROM with various target expressions and see if you can get something more sane. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/NULLs-and-composite-types-tp5783027p5783187.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com. -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql