Re: jsonpath
От
Andres Freund
Тема
Re: jsonpath
Дата
Msg-id
20190129010332.i4t64evqc3bwtjzx@alap3.anarazel.de
Ответ на
Re: jsonpath (Alexander Korotkov)
Список
Дерево обсуждения
jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Pavel Stehule <pavel.stehule@gmail.com>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Pavel Stehule <pavel.stehule@gmail.com>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Pavel Stehule <pavel.stehule@gmail.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Oleg Bartunov <obartunov@gmail.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Oleg Bartunov <obartunov@gmail.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Robert Haas <robertmhaas@gmail.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath David Steele <david@pgmasters.net>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Thomas Munro <thomas.munro@enterprisedb.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Stas Kelvich <s.kelvich@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Michael Paquier <michael@paquier.xyz>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Oleg Bartunov <obartunov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Oleg Bartunov <obartunov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Andres Freund <andres@anarazel.de>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Michael Paquier <michael@paquier.xyz>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Andres Freund <andres@anarazel.de>
Re: jsonpath Andres Freund <andres@anarazel.de>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Andres Freund <andres@anarazel.de>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Andres Freund <andres@anarazel.de>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Andres Freund <andres@anarazel.de>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Pavel Stehule <pavel.stehule@gmail.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath "Jonathan S. Katz" <jkatz@postgresql.org>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath "Jonathan S. Katz" <jkatz@postgresql.org>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath "Jonathan S. Katz" <jkatz@postgresql.org>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath "Jonathan S. Katz" <jkatz@postgresql.org>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Pavel Stehule <pavel.stehule@gmail.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Jeff Janes <jeff.janes@gmail.com>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Tom Lane <tgl@sss.pgh.pa.us>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: jsonpath Oleg Bartunov <obartunov@postgrespro.ru>
Re: jsonpath John Naylor <john.naylor@2ndquadrant.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Andres Freund <andres@anarazel.de>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Robert Haas <robertmhaas@gmail.com>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Pavel Stehule <pavel.stehule@gmail.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath John Naylor <john.naylor@2ndquadrant.com>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Alexander Korotkov <a.korotkov@postgrespro.ru>
Re: jsonpath Dmitry Dolgov <9erthalion6@gmail.com>
Re: jsonpath Oleg Bartunov <obartunov@postgrespro.ru>
Re: jsonpath Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Re: jsonpath Oleg Bartunov <obartunov@gmail.com>
Hi,
On 2019-01-29 04:00:19 +0300, Alexander Korotkov wrote:
> + /*
> + * It is safe to use here PG_TRY/PG_CATCH without subtransaction because
> + * no function called inside performs data modification.
> + */
> + PG_TRY();
> + {
> + res = DirectFunctionCall2(func, ldatum, rdatum);
> + }
> + PG_CATCH();
> + {
> + int errcode = geterrcode();
> +
> + if (jspThrowErrors(cxt) ||
> + ERRCODE_TO_CATEGORY(errcode) != ERRCODE_DATA_EXCEPTION)
> + PG_RE_THROW();
> +
> + MemoryContextSwitchTo(mcxt);
> + FlushErrorState();
> +
> + return jperError;
> + }
> + PG_END_TRY();
FWIW, I still think this is a terrible idea and shouldn't be merged this
way. The likelihood of introducing subtle bugs seems way too high - even
if it's possibly not buggy today, who says that it's not going to be in
the future?
Greetings,
Andres Freund
В списке pgsql-hackers по дате отправления