Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn34V-00071h-WB for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 14:34:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fn34T-0003gT-Pe for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Aug 2018 14:34:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn34K-0002wm-TW for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 14:34:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fn34G-0000cz-Ci for pgsql-bugs@lists.postgresql.org; Tue, 07 Aug 2018 14:34:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w77EYXcU005593; Tue, 7 Aug 2018 10:34:33 -0400 From: Tom Lane To: vvvasilev93@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15311: Incorrect comparison of the empty array with the value of the custom type from the table field In-reply-to: <153363599037.1298.18121443062293897247@wrigleys.postgresql.org> References: <153363599037.1298.18121443062293897247@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Tue, 07 Aug 2018 09:59:50 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5591.1533652473.1@sss.pgh.pa.us> Date: Tue, 07 Aug 2018 10:34:33 -0400 Message-ID: <5592.1533652473@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > [ bogus empty array can be created by jsonb_populate_record ] I can reproduce this in 10.5, but not in v11 or HEAD. I believe it was fixed as a consequence of the patch for bug #14826: https://postgr.es/m/flat/20170923125723.1448.39412@wrigleys.postgresql.org https://postgr.es/m/20570.1506198383@sss.pgh.pa.us The reasons for not back-patching still seem good to me. regards, tom lane