Re: JSON validation behavior - Mailing list pgsql-hackers

From Sergei Kornilov
Subject Re: JSON validation behavior
Date
Msg-id 496471540398462@myt6-fe24916a5562.qloud-c.yandex.net
Whole thread Raw
In response to Re: JSON validation behavior  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi

> I could get behind fixing
> it to always throw the error, but that's not what Sergei was hoping for.
On the contrary i think it is reasonable way. It is much better to have error on input value instead of finding wrong
valueduring table processing. We always reject this value for jsonb and i expected the same behavior for json. Not sure
aboutJSON specification compliance, didn't find anything about \u0000 in rfc8259.
 

regards, Sergei


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: JSON validation behavior
Next
From: Alvaro Herrera
Date:
Subject: Re: pgbench - add pseudo-random permutation function