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

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: IS JSON STRICT - In oracle => postgres ??
Дата
Msg-id 5be4f226-6838-acd5-f260-d1930a34580a@gmx.net
обсуждение исходный текст
Ответ на IS JSON STRICT - In oracle => postgres ??  (Nikhil Ingale <niks.bgm@gmail.com>)
Список pgsql-admin
Nikhil Ingale schrieb am 14.06.2023 um 12:00:
> 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?

That check constraint isn't necessary in Postgres.

A column defined as jsonb (or json) will not accept invalid JSON.

That's pretty much the behaviour that's introduced in Oracle 23 with the new JSON data type.




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

Предыдущее
От: M Sarwar
Дата:
Сообщение: Re: How to use long list of columns with COPY command
Следующее
От: M Sarwar
Дата:
Сообщение: The same result for with SPACE and without SPACE