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

From Andrew Dunstan
Subject Re: [PATH] Jsonb, insert a new value into an array at arbitrary position
Date
Msg-id 57042E39.1030502@dunslane.net
Whole thread Raw
In response to Re: [PATH] Jsonb, insert a new value into an array at arbitrary position  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATH] Jsonb, insert a new value into an array at arbitrary position  (Dmitry Dolgov <9erthalion6@gmail.com>)
List pgsql-hackers

On 04/05/2016 03:08 PM, Tom Lane wrote:
>
> I think there is potentially some use-case for insert-only semantics
> for an object target, if you want to be sure you're not overwriting
> data.  So I think "throw an error on duplicate key" is marginally better
> than "reject object target altogether".  But I could live with either.



Yeah, keeping it but rejecting update of an existing key is my 
preference too.

cheers

andrew



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: large regression for parallel COPY
Next
From: Alvaro Herrera
Date:
Subject: Re: dealing with extension dependencies that aren't quite 'e'