Re: Bug in comparison of empty jsonb arrays to scalars - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Bug in comparison of empty jsonb arrays to scalars
Date
Msg-id CA+Tgmoa-DnyK1NFdAWSh3x-YWYvtzEjLjmYRoQbTn-EtybfM_g@mail.gmail.com
Whole thread Raw
In response to Re: Bug in comparison of empty jsonb arrays to scalars  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Bug in comparison of empty jsonb arrays to scalars
List pgsql-hackers
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

Look at the last page.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Danger of automatic connection reset in psql
Next
From: Jaime Casanova
Date:
Subject: Re: patch proposal