Re: Further issues with jsonb semantics, documentation

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Peter Geoghegan <pg(at)heroku(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Further issues with jsonb semantics, documentation
Date: 2015-06-12 19:26:37
Message-ID: 557B326D.8090600@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
json_count_array.patch text/x-diff 2.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2015-06-12 20:28:04 Re: Further issues with jsonb semantics, documentation
Previous Message Kevin Grittner 2015-06-12 18:56:51 Re: The Future of Aggregation