Re: Basic JSON support

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Basic JSON support
Дата
Msg-id 4CAA7AB8.5050205@dunslane.net
обсуждение исходный текст
Ответ на Re: Basic JSON support  (Josh Berkus <josh@agliodbs.com>)
Список 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 по дате отправления:

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Basic JSON support
Следующее
От: Josh Kupershmidt
Дата:
Сообщение: Re: I: About "Our CLUSTER implementation is pessimal" patch