Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDBEc-0006xJ-7U for pgsql-bugs@arkaria.postgresql.org; Tue, 23 May 2017 14:56:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dDBEb-0007NW-OX for pgsql-bugs@arkaria.postgresql.org; Tue, 23 May 2017 14:56:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDBEb-0007Kf-2r for pgsql-bugs@postgresql.org; Tue, 23 May 2017 14:56:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDBEU-0006Hz-1T for pgsql-bugs@postgresql.org; Tue, 23 May 2017 14:56:27 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v4NEuHOO024956; Tue, 23 May 2017 10:56:18 -0400 From: Tom Lane To: julius.tuskenis@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14665: Wrong IS NULL result for composite type that has composite element In-reply-to: <20170523135327.29942.17412@wrigleys.postgresql.org> References: <20170523135327.29942.17412@wrigleys.postgresql.org> Comments: In-reply-to julius.tuskenis@gmail.com message dated "Tue, 23 May 2017 13:53:27 -0000" Date: Tue, 23 May 2017 10:56:16 -0400 Message-ID: <1258.1495551376@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org julius.tuskenis@gmail.com writes: > The problem is with the composite types that have composite types in them. > In cases then a subtype has all NULL fields the type is still evaluated NOT > NULL. Yeah, it's not recursive. We concluded that that's correct per the text of the SQL standard. See discussion here: https://www.postgresql.org/message-id/flat/20160708024746.1410.57282%40wrigleys.postgresql.org regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs