Re: Further issues with jsonb semantics, documentation - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Further issues with jsonb semantics, documentation
Date
Msg-id 557B326D.8090600@dunslane.net
Whole thread Raw
In response to Re: Further issues with jsonb semantics, documentation  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Further issues with jsonb semantics, documentation  (Peter Geoghegan <pg@heroku.com>)
List pgsql-hackers
On 06/12/2015 12:29 PM, I wrote:
>
>
>
> I agree that the json case looks a bit nasty. Maybe a better approach
> would be to provide a function that, given a JsonLexContext, returns
> the number of array elements of the current array. In get_array_start
> we could call that if the relevant path element is negative and adjust
> it accordingly.
>
>



Here's some code for the count piece of that.

cheers

andrew


Attachment

pgsql-hackers by date:

Previous
From: Kevin Grittner
Date:
Subject: Re: The Future of Aggregation
Next
From: Peter Geoghegan
Date:
Subject: Re: Further issues with jsonb semantics, documentation