Re: jsonb concatenate operator's semantics seem questionable - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: jsonb concatenate operator's semantics seem questionable
Date
Msg-id 555A4865.6030109@joh.to
Whole thread Raw
In response to Re: jsonb concatenate operator's semantics seem questionable  (Josh Berkus <josh@agliodbs.com>)
Responses Re: jsonb concatenate operator's semantics seem questionable
List pgsql-hackers
On 2015-05-18 22:10, Josh Berkus wrote:
> On 05/18/2015 01:04 PM, Ryan Pedela wrote:
>> In the context of splitting shallow and deep merge into two operators, I
>> think + is better for shallow and || better for deep. The reason for +
>> is because many programming languages have this behavior. If I see the
>> below code in language I have never used before:
>>
>> objC = objA + objB
>>
>> My default assumption is that + performs a shallow merge. Like I said, I
>> would rather there just be one operator.
>
> Thank you, that helps.  Anyone else?

If everyone thinks the operators mean different things, we could just 
not add any operators and only provide functions instead.


.m



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: jsonb concatenate operator's semantics seem questionable
Next
From: Peter Geoghegan
Date:
Subject: Re: jsonb concatenate operator's semantics seem questionable