Re: IS JSON STRICT - In oracle => postgres ??

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Nikhil Ingale <niks(dot)bgm(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: IS JSON STRICT - In oracle => postgres ??
Date: 2023-06-20 08:07:05
Message-ID: 5cd1da78-e1ad-42d2-9f33-9aa0b163293e@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 14.06.23 12:00, Nikhil Ingale wrote:
> In oracle we can use the *is json* check constraint for the json column
> to ensure the data is well formed.
>
> How do we ensure the same in postgres database?

PostgreSQL 16 has an IS JSON predicate.

It doesn't have a STRICT clause, which I don't see in the SQL standard.
So it might not do exactly the same thing.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Nikhil Ingale 2023-06-20 08:57:20 Re: IS JSON STRICT - In oracle => postgres ??
Previous Message Debraj Manna 2023-06-20 07:55:13 Re: What does invalid_transaction_state 25000 mean