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 1krPij-0007lk-Ie for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Dec 2020 18:15:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1krPii-0007u1-77 for pgsql-hackers@arkaria.postgresql.org; Mon, 21 Dec 2020 18:15:44 +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 1krPii-0007tt-0V for pgsql-hackers@lists.postgresql.org; Mon, 21 Dec 2020 18:15:44 +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 1krPie-0006Zw-Sw for pgsql-hackers@lists.postgresql.org; Mon, 21 Dec 2020 18:15:43 +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 0BLIFbcJ543167; Mon, 21 Dec 2020 13:15:38 -0500 From: Tom Lane To: "Joel Jacobson" cc: pgsql-hackers@lists.postgresql.org Subject: Re: Weird special case in jsonb_concat() In-reply-to: <0b1c7b60-85ce-438d-b196-0f48b637e0ef@www.fastmail.com> References: <163099.1608312033@sss.pgh.pa.us> <333852.1608410128@sss.pgh.pa.us> <0b1c7b60-85ce-438d-b196-0f48b637e0ef@www.fastmail.com> Comments: In-reply-to "Joel Jacobson" message dated "Sun, 20 Dec 2020 08:33:38 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <543165.1608574537.1@sss.pgh.pa.us> Date: Mon, 21 Dec 2020 13:15:37 -0500 Message-ID: <543166.1608574537@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Joel Jacobson" writes: > On Sat, Dec 19, 2020, at 21:35, Tom Lane wrote: >> Here is a proposed patch for that. > In addition, to the user wondering how to append a json array-value "as is", > I think it would be useful to provide an example on how to do this > in the documentation. Done in v13 and HEAD; the older table format doesn't really have room for more examples. > +1 back-patch, I think it's a bug. I'm not quite sure it's a bug, but it does seem like fairly unhelpful behavior to throw an error instead of doing something useful, so back-patched. regards, tom lane