pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: Nikhil Ingale <niks.bgm@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: IS JSON STRICT - In oracle => postgres ??
Date: Tue, 20 Jun 2023 10:07:05 +0200
Message-ID: <5cd1da78-e1ad-42d2-9f33-9aa0b163293e@eisentraut.org> (raw)
In-Reply-To: <CALXkTpx66eJKJM1YPFmYJNJwn2LeGAb7qkiXkhyOGBCoKA4isQ@mail.gmail.com>
References: <CALXkTpx66eJKJM1YPFmYJNJwn2LeGAb7qkiXkhyOGBCoKA4isQ@mail.gmail.com>

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.





view thread (7+ messages)  latest in thread

Message-ID: <5cd1da78-e1ad-42d2-9f33-9aa0b163293e@eisentraut.org>
Permalink:  ../5cd1da78-e1ad-42d2-9f33-9aa0b163293e@eisentraut.org/
Also on:    postgresql.org/message-id/5cd1da78-e1ad-42d2-9f33-9aa0b163293e@eisentraut.org

 · 

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-admin@postgresql.org
  Cc: peter@eisentraut.org, niks.bgm@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: IS JSON STRICT - In oracle => postgres ??
  In-Reply-To: <5cd1da78-e1ad-42d2-9f33-9aa0b163293e@eisentraut.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox