Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mrkYH-0005Sd-BZ for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Nov 2021 17:34:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mrkYF-0006dw-P4 for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Nov 2021 17:34:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mrkYF-0006dn-Gw for pgsql-bugs@lists.postgresql.org; Mon, 29 Nov 2021 17:34:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mrkYD-000605-Bt for pgsql-bugs@lists.postgresql.org; Mon, 29 Nov 2021 17:34:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1ATHYmPI1268252; Mon, 29 Nov 2021 12:34:48 -0500 From: Tom Lane To: "Poot, Bas (B.J.)" cc: "pgsql-bugs@lists.postgresql.org" Subject: Re: subselect removes rows In-reply-to: <57ceecb9c50743eeaf8732fcf2185d68@politie.nl> References: ,<1217100.1638198095@sss.pgh.pa.us> <57ceecb9c50743eeaf8732fcf2185d68@politie.nl> Comments: In-reply-to "Poot, Bas (B.J.)" message dated "Mon, 29 Nov 2021 15:44:54 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1268250.1638207288.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 29 Nov 2021 12:34:48 -0500 Message-ID: <1268251.1638207288@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Poot, Bas (B.J.)" writes: > The problem is that I don't expect (and can't imagine it is correct) tha= t a (any) sub-select removes rows from the resultset. I'm really not sure what you're saying here. If you're complaining about jsonb_each_text returning no rows for empty input, that behavior hasn't changed, and it's hard to see what else it could do. Your example isn't showing any other behavior that seems odd. regards, tom lane