Re: Bug in comparison of empty jsonb arrays to scalars

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Bug in comparison of empty jsonb arrays to scalars
Дата
Msg-id CAB7nPqSDa=WDEVQ2oQyfiNJmpQKWJQDvxS2kG29fyQtdk5eUdQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bug in comparison of empty jsonb arrays to scalars  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Bug in comparison of empty jsonb arrays to scalars
Список pgsql-hackers
On Thu, Nov 10, 2016 at 3:27 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Tue, Nov 8, 2016 at 9:49 PM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
>> On Wed, Nov 9, 2016 at 8:31 AM, Nikita Glukhov <n.gluhov@postgrespro.ru> wrote:
>>> Hi hackers.
>>>
>>> While working on jsonbstatistics, I found the following bug:
>>> an empty jsonb array is considered to be lesser than any scalar,
>>> but it is expected that objects > arrays > scalars.
>>
>> Sources?
>
> How about "our documentation"?
>
> https://www.postgresql.org/docs/current/static/datatype-json.html

Indeed, I missed that. So that's broken...
-- 
Michael



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

Предыдущее
От: Marc Balmer
Дата:
Сообщение: Referential integrity on large objects
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in comparison of empty jsonb arrays to scalars