| From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
|---|---|
| To: | stephen(at)infowerks(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Postgres jsonb data |
| Date: | 2025-05-21 06:12:06 |
| Message-ID: | 9314cf1402ee27d287b24d3a7622f7dc78d6ea34.camel@cybertec.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2025-05-22 11:17:19 | Add missing references to database object statistics manipulation functions in documentation |
| Previous Message | Michael Paquier | 2025-05-21 02:41:16 | Re: reindex documentation |