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

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: IS JSON STRICT - In oracle => postgres ??
Дата
Msg-id 5cd1da78-e1ad-42d2-9f33-9aa0b163293e@eisentraut.org
обсуждение исходный текст
Ответ на IS JSON STRICT - In oracle => postgres ??  (Nikhil Ingale <niks.bgm@gmail.com>)
Ответы Re: IS JSON STRICT - In oracle => postgres ??  (Nikhil Ingale <niks.bgm@gmail.com>)
Список 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.



В списке pgsql-admin по дате отправления:

Предыдущее
От: Debraj Manna
Дата:
Сообщение: Re: What does invalid_transaction_state 25000 mean
Следующее
От: Nikhil Ingale
Дата:
Сообщение: Re: IS JSON STRICT - In oracle => postgres ??