Re: SQL/JSON: functions
От
Andrew Dunstan
Тема
Re: SQL/JSON: functions
Дата
Msg-id
3784b162-c677-6730-cd82-3c64a6172c76@dunslane.net
Ответ на
Re: SQL/JSON: functions (Himanshu Upadhyaya)
Список
Дерево обсуждения
SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Simon Riggs <simon@2ndquadrant.com>
Re: SQL/JSON: functions Oleg Bartunov <obartunov@gmail.com>
Re: SQL/JSON: functions Michael Paquier <michael@paquier.xyz>
Re: SQL/JSON: functions Andres Freund <andres@anarazel.de>
Re: SQL/JSON: functions Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: SQL/JSON: functions Oleg Bartunov <obartunov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Dmitry Dolgov <9erthalion6@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Dmitry Dolgov <9erthalion6@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Andres Freund <andres@anarazel.de>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: Re: SQL/JSON: functions Andrew Alsup <bluesbreaker@gmail.com>
Re: Re: SQL/JSON: functions Thomas Munro <thomas.munro@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Alvaro Herrera <alvherre@2ndquadrant.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Erik Rijkers <er@xs4all.nl>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Erik Rijkers <er@xs4all.nl>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Justin Pryzby <pryzby@telsasoft.com>
Re: SQL/JSON: functions Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: SQL/JSON: functions Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Simon Riggs <simon@2ndquadrant.com>
Re: SQL/JSON: functions Oleg Bartunov <obartunov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Oleg Bartunov <obartunov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: SQL/JSON: functions Michael Paquier <michael@paquier.xyz>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Zhihong Yu <zyu@yugabyte.com>
Re: SQL/JSON: functions Zhihong Yu <zyu@yugabyte.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: SQL/JSON: functions Erik Rijkers <er@xs4all.nl>
Re: SQL/JSON: functions Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: Re: SQL/JSON: functions Andrew Alsup <bluesbreaker@gmail.com>
Re: SQL/JSON: functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: Re: SQL/JSON: functions Andrew Alsup <bluesbreaker@gmail.com>
Re: Re: SQL/JSON: functions Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: SQL/JSON: functions Pavel Stehule <pavel.stehule@gmail.com>
Re: SQL/JSON: functions Oleg Bartunov <obartunov@gmail.com>
On 1/6/22 06:24, Himanshu Upadhyaya wrote: > I have one general question on the below scenario. > CREATE TABLE T (Id INTEGER PRIMARY KEY,Jcol CHARACTER VARYING ( 5000 > )CHECK ( Jcol IS JSON ) ); > insert into T values (1,323); > ORACLE is giving an error(check constraint...violated ORA-06512) for > the above insert but Postgres is allowing it, however is not related > to this patch but just thinking if this is expected. > > ‘postgres[22198]=#’SELECT * FROM T WHERE Jcol IS JSON; > id | jcol > ----+------ > 1 | 323 > How come number 323 is the valid json? If you look at the JSON grammar at or it's clear that a bare number is valid json. Our parser implements that grammar pretty faithfully, in fact rather more faithfully than many implementations (e.g. we allow huge number strings). So as far as I'm concerned, we are right and Oracle is wrong. It would hardly be the first time such a thing has happened. Oracle is not the definer of the JSON standard. ECMA is. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com
В списке pgsql-hackers по дате отправления