Re: additional json functionality

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: additional json functionality
Дата
Msg-id 528BB4E6.90904@dunslane.net
обсуждение исходный текст
Ответ на Re: additional json functionality  (David Johnston <polobo@yahoo.com>)
Список pgsql-hackers
On 11/19/2013 01:43 PM, David Johnston wrote:
> Andrew Dunstan wrote
>> Given that, I'm not sure we shouldn't permit them in b) either. I think
>> I lost that argument back in the 9.2 dev cycle. I really don't want to
>> get to a situation where foo::json::jsonb can produce an error.
> So what do you propose happens when the input json has duplicate keys?


I propose that we do what V8 does, what hstore does (yes, I know it's 
not json, but consistency is good), what we do now with the json_get() 
functions, what almost every other JSON engine I know of does, namely 
that the last key wins.

cheers

andrew




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: UNNEST with multiple args, and TABLE with multiple funcs
Следующее
От: David Johnston
Дата:
Сообщение: Re: additional json functionality