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+q6zcXgrT=jZc0aP=9RsCPCBb+whVrkDat7E7Prk7HZsa9weQ@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>)
List pgsql-hackers
<div dir="ltr">> <span style="font-size:12.8px">I still don't like that this works on path leading to an object
giventhat we can't fulfill the promise of inserting to an arbitrary position there.<br /><br />I'm thinking about this
followingway - `jsonb_insert` is just a function to insert a new value, which has specific options to enforce arbitrary
positionin case of jsonb array. I don't think this can confuse someone since it's not something like
`jsonb_insert_at_position`function. But of course, if I'm wrong we can easy change the function name and make it
availableonly for arrays.</span></div> 

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Combining Aggregates
Next
From: Tomas Vondra
Date:
Subject: Re: Combining Aggregates