agora inbox for pgsql-docs@postgresql.org
help / color / mirror / Atom feedFrom: Laurenz Albe <laurenz.albe@cybertec.at>
To: stephen@infowerks.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: Postgres jsonb data
Date: Wed, 21 May 2025 08:12:06 +0200
Message-ID: <9314cf1402ee27d287b24d3a7622f7dc78d6ea34.camel@cybertec.at> (raw)
In-Reply-To: <174774849023.1455382.3103677107495562713@wrigleys.postgresql.org>
References: <174774849023.1455382.3103677107495562713@wrigleys.postgresql.org>
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
view thread (2+ messages)
Message-ID: <9314cf1402ee27d287b24d3a7622f7dc78d6ea34.camel@cybertec.at>
Permalink: ../9314cf1402ee27d287b24d3a7622f7dc78d6ea34.camel@cybertec.at/
Also on: postgresql.org/message-id/9314cf1402ee27d287b24d3a7622f7dc78d6ea34.camel@cybertec.at
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: laurenz.albe@cybertec.at, stephen@infowerks.com, pgsql-docs@lists.postgresql.org
Subject: Re: Postgres jsonb data
In-Reply-To: <9314cf1402ee27d287b24d3a7622f7dc78d6ea34.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox