Re: jsonb and nested hstore

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: jsonb and nested hstore
Дата
Msg-id 530E2DA0.3020108@2ndQuadrant.com
обсуждение исходный текст
Ответ на Re: jsonb and nested hstore  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
On 02/26/2014 07:41 PM, Josh Berkus wrote:
> On 02/26/2014 07:02 AM, Merlin Moncure wrote:
>> On Tue, Feb 25, 2014 at 3:57 PM, Hannu Krosing <hannu@2ndquadrant.com> wrote:
>>> It is not in any specs, but nevertheless all major imlementations do it and
>>> some code depends on it.
>>> IIRC, this behaviour is currently also met only by json and not by jsonb.
>> Yes: This was the agreement that was struck and is the main reason why
>> there are two json types, not one.  JSON does not guarantee field
>> ordering as I read the spec and for the binary form ordering is not
>> maintained as a concession to using the hstore implementation.
> Actually, that's not true; neither Mongo/BSON nor CouchDB preserve field
> ordering.  
That is strange at least for BSON, as it does not have any nearly as
sophisticated
internal format as hstore - no hash tables or anything, just a binary
serialisation.
It would take an extra effort to *not* keep the order there :)

http://bsonspec.org/#/specification


Cheers

-- 
Hannu Krosing
PostgreSQL Consultant
Performance, Scalability and High Availability
2ndQuadrant Nordic OÜ




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

Предыдущее
От: Ashutosh Bapat
Дата:
Сообщение: Re: Avoiding deeply nested AND/OR trees in the parser
Следующее
От: Christian Kruse
Дата:
Сообщение: Re: [PATCH] Use MAP_HUGETLB where supported (v3)