Re: jsonb and nested hstore - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: jsonb and nested hstore
Date
Msg-id 5321CD52.7060208@dunslane.net
Whole thread Raw
In response to Re: jsonb and nested hstore  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On 03/13/2014 10:49 AM, Greg Stark wrote:
> Another question. Is Peter's branch up to date with
> jsonb_populate_record() ? From discussions on list it sounds like the
> plan was to get rid of the use_json_as_text argument but his patch
> still has it.

Yes, we're not changing that, and some people like it anyway. The API is 
intentionally the same as the legacy json_populate_record API.


>
> (Tangentially, I wonder if it wouldn't be possible to make this a
> plain cast. I'm not sure but I think it's possible to have a cast to a
> polymorphic type and peek at runtime at the record definition to
> determine what to do).
>


If you can simplify it be my guest.

cheers

andrew



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] Store Extension Options
Next
From: Andres Freund
Date:
Subject: Re: [PATCH] Store Extension Options