Re: [PATH] Jsonb, insert a new value into an array at arbitrary position - Mailing list pgsql-hackers

From Dmitry Dolgov
Subject Re: [PATH] Jsonb, insert a new value into an array at arbitrary position
Date
Msg-id CA+q6zcXhf30sYVnicrKamvmctSn0B_wA0QJwH9Ja3oZyasWooQ@mail.gmail.com
Whole thread Raw
In response to Re: [PATH] Jsonb, insert a new value into an array at arbitrary position  (Petr Jelinek <petr@2ndquadrant.com>)
Responses Re: [PATH] Jsonb, insert a new value into an array at arbitrary position
Re: [PATH] Jsonb, insert a new value into an array at arbitrary position
List pgsql-hackers
I'd strongly prefer the jsonb_array_insert naming though
I don't think it's a good idea to use set when this is used on object, I think that we should throw error in that case.

Well, I thought it's wrong to introduce different functions and behaviour patterns for objects and arrays, because it's the one data type after all. But it's just my opinion of course. 

Also this patch needs documentation.

I've added new version in attachments, thanks.
Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: PL/Pythonu - function ereport
Next
From: Robert Haas
Date:
Subject: Re: postgres_fdw vs. force_parallel_mode on ppc