Re: Weird special case in jsonb_concat() - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Weird special case in jsonb_concat()
Date
Msg-id 543166.1608574537@sss.pgh.pa.us
Whole thread Raw
In response to Re: Weird special case in jsonb_concat()  ("Joel Jacobson" <joel@compiler.org>)
List pgsql-hackers
"Joel Jacobson" <joel@compiler.org> 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



pgsql-hackers by date:

Previous
From: Dmitry Markman
Date:
Subject: Re: how to find log
Next
From: Pavel Stehule
Date:
Subject: Re: bad dependency in pg_dump output related to support function breaks binary upgrade