Re: JSON validation behavior

Поиск
Список
Период
Сортировка
От Sergei Kornilov
Тема Re: JSON validation behavior
Дата
Msg-id 496471540398462@myt6-fe24916a5562.qloud-c.yandex.net
обсуждение исходный текст
Ответ на Re: JSON validation behavior  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: JSON validation behavior
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: pgbench - add pseudo-random permutation function