Re: Postgres jsonb data - Mailing list pgsql-docs

From Laurenz Albe
Subject Re: Postgres jsonb data
Date
Msg-id 9314cf1402ee27d287b24d3a7622f7dc78d6ea34.camel@cybertec.at
Whole thread Raw
In response to Postgres jsonb data  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
On Tue, 2025-05-20 at 13:41 +0000, PG Doc comments form wrote:
> Page: https://www.postgresql.org/docs/14/datatype-json.html
>
> Documentation suggests that a json type of null doesn't turn into anything
> when read into a jsonb, because the json type of null doesn't correspond to
> the postgres type of NULL.  We've found that in fact it's treated the same
> as the string "null" - and the documentation probably should reflect this
> edge case.

I see them treated differently:

SELECT 'null'::jsonb IS NULL;
 ?column?
══════════
 f
(1 row)

Can you show examples of what you mean?

Yours,
Laurenz Albe



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: Postgres jsonb data
Next
From: Fujii Masao
Date:
Subject: Add missing references to database object statistics manipulation functions in documentation