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
In response to Re: [PATH] Jsonb, insert a new value into an array at arbitrary position  (Petr Jelinek <petr@2ndquadrant.com>)
List pgsql-hackers
I still don't like that this works on path leading to an object given that we can't fulfill the promise of inserting to an arbitrary position there.

I'm thinking about this following way - `jsonb_insert` is just a function to insert a new value, which has specific options to enforce arbitrary position in 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 available only for arrays.

pgsql-hackers by date:

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