Re: mogrify and indent features for jsonb - Mailing list pgsql-hackers

From Josh Berkus
Subject Re: mogrify and indent features for jsonb
Date
Msg-id 54EF61DD.7040208@agliodbs.com
Whole thread Raw
In response to mogrify and indent features for jsonb  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Partitioning WIP patch
Next
From: Josh Berkus
Date:
Subject: Re: Partitioning WIP patch