Ambiguous statement about order

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Ambiguous statement about order
Дата
Msg-id CAKFQuwY6MT-vzJb+kkE3EN0XYJY=NxyYvtwWARGuYQCDuRJWHg@mail.gmail.com
обсуждение исходный текст
Ответ на Ambiguous statement about order  (PG Doc comments form <noreply@postgresql.org>)
Список pgsql-docs
On Thursday, September 14, 2023, PG Doc comments form <noreply@postgresql.org> wrote:
I observed that arrays inside JSONB preserved order of insertion. An
explicit line about whether the array order will be preserved or not would
be helpful.

We don’t take on responsibility for teaching people what json is.  Json arrays are slotted composite elements where the slots are numerically indexed.  That, by definition, makes their contents “ordered”.  The fact that object keys are unordered and that arrays can be object keys is immaterial to whether the contents of arrays are ordered.

David J.

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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Ambiguous statement about order
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: file-fdw and force_null