On 02/26/2015 07:25 AM, Thom Brown wrote:
> Yeah, I think that may be problematic. I agree with Josh that there's
> probably no sane mix of operators for this, as I would expect your
> example to replace "d": ["aa","bb","cc","dd"] with "d": ["ee"] rather
> than append to it. Hmm... unless we used a + operator, but then I'm not
> sure what should happen in the instance of '{"d": ["aa"]}' + '{"d": "bb"}'.
Yeah, that's what I would expect too. In fact, I could would count on
replacement.
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com