Re: [PATCH] Fix jsonb comparison for raw scalar pseudo arrays - Mailing list pgsql-hackers

From jian he
Subject Re: [PATCH] Fix jsonb comparison for raw scalar pseudo arrays
Date
Msg-id CACJufxEdQ-OXv=qsaouySbhcTo350NP3-58L551+RRg_opVmZw@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Fix jsonb comparison for raw scalar pseudo arrays  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Sun, Dec 8, 2024 at 10:58 PM Andrew Dunstan <andrew@dunslane.net> wrote:
>
> So the actual sort order as implemented is, AIUI,
>
> Object > Non-Empty-Array > Boolean > Number > String > Null > Empty-Array
>
> which is ugly, but fortunately not many apps rely on jsonb sort order.
>
> Nobody else has commented, so I propose to apply this patch documenting the anomaly.
>

while at it. we can fix the appearance of jsonb null.

since
select jsonb 'Null';
select jsonb 'NULL';
will fail.

so maybe change
<replaceable>Null</replaceable> in <synopsis> section and
<replaceable>NULL</replaceable>
to
<replaceable>null</replaceable>



pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: shared-memory based stats collector - v70
Next
From: Masahiro Ikeda
Date:
Subject: Re: Track the amount of time waiting due to cost_delay