Re: Basic JSON support - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Basic JSON support
Date
Msg-id 4CAA7AB8.5050205@dunslane.net
Whole thread Raw
In response to Re: Basic JSON support  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers

On 10/04/2010 08:00 PM, Josh Berkus wrote:
> All,
>
>> But having said that, I wonder whether bison/flex are really the best
>> tool for the job in the first place.  From what I understand of JSON
>> (which admittedly ain't much) a bison parser seems like overkill:
>> it'd probably be both bloated and slow compared to a simple handwritten
>> recursive-descent parser.
> This appears not to be necessary.  The author of JSONval has indicated
> that, should we choose to include it in PostgreSQL 9.1, he is open to
> re-licensing.
>
> So on a completely *technical* basis, do we want to use JSONval?

I agree with Tom that a hand-cut RD parser is much more likely to be the 
way to go. We should not use bison/flex for parsing data values.

cheers

andrew


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Basic JSON support
Next
From: Josh Kupershmidt
Date:
Subject: Re: I: About "Our CLUSTER implementation is pessimal" patch