Re: Error-safe user functions
От
Andrew Dunstan
Тема
Re: Error-safe user functions
Дата
Msg-id
34ff276e-b519-9466-253c-cbf8daedbc9a@dunslane.net
Ответ на
Re: Error-safe user functions (Tom Lane)
Список
Дерево обсуждения
Error-safe user functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Joe Conway <mail@joeconway.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions "David G. Johnston" <david.g.johnston@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions "David G. Johnston" <david.g.johnston@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions "David G. Johnston" <david.g.johnston@gmail.com>
Re: Error-safe user functions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions "David G. Johnston" <david.g.johnston@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions "David G. Johnston" <david.g.johnston@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andres Freund <andres@anarazel.de>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Amul Sul <sulamul@gmail.com>
Re: Error-safe user functions Amul Sul <sulamul@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Amul Sul <sulamul@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Amul Sul <sulamul@gmail.com>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Amul Sul <sulamul@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Ted Yu <yuzhihong@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Ted Yu <yuzhihong@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Ted Yu <yuzhihong@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Ted Yu <yuzhihong@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Pavel Stehule <pavel.stehule@gmail.com>
Re: Error-safe user functions Amul Sul <sulamul@gmail.com>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions "David G. Johnston" <david.g.johnston@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Joe Conway <mail@joeconway.com>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Andrew Dunstan <andrew@dunslane.net>
Re: Error-safe user functions Vik Fearing <vik@postgresfriends.org>
Re: Error-safe user functions Michael Paquier <michael@paquier.xyz>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Robert Haas <robertmhaas@gmail.com>
Re: Error-safe user functions Tom Lane <tgl@sss.pgh.pa.us>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
Re: Error-safe user functions Michael Paquier <michael@paquier.xyz>
Re: Error-safe user functions Nikita Glukhov <n.gluhov@postgrespro.ru>
Re: Error-safe user functions Corey Huinker <corey.huinker@gmail.com>
On 2022-12-22 Th 01:10, Tom Lane wrote:
> Andrew Dunstan writes:
>> And here's another for contrib/seg
>> I'm planning to commit these two in the next day or so.
> I didn't look at the jsonpath one yet. The seg patch passes
> an eyeball check, with one minor nit: in seg_atof,
>
> + *result = float4in_internal(value, NULL, "real", value, escontext);
>
> don't we want to use "seg" as the type_name?
>
> Even more nitpicky, in
>
> +seg_yyerror(SEG *result, struct Node *escontext, const char *message)
> {
> + if (SOFT_ERROR_OCCURRED(escontext))
> + return;
>
> I'd be inclined to add some explanation, say
>
> +seg_yyerror(SEG *result, struct Node *escontext, const char *message)
> {
> + /* if we already reported an error, don't overwrite it */
> + if (SOFT_ERROR_OCCURRED(escontext))
> + return;
>
>
Thanks for the review.
Fixed both of these and pushed.
cheers
andrew
--
Andrew Dunstan
EDB: https://www.enterprisedb.com
В списке pgsql-hackers по дате отправления