Re: Error-safe user functions

Поиск
Список
Период
Сортировка
Искать
От
Andrew Dunstan
Тема
Re: Error-safe user functions
Дата
Msg-id
40ff1ed1-4245-e343-bffa-c7755b031492@dunslane.net
Ответ на
Список
Дерево обсуждения
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-05 Mo 20:06, Tom Lane wrote:
> Andres Freund  writes:
>
>> But perhaps it's even worth having such a function properly exposed:
>> It's not at all rare to parse text data during ETL and quite often
>> erroring out fatally is undesirable. As savepoints are undesirable
>> overhead-wise, there's a lot of SQL out there that tries to do a
>> pre-check about whether some text could be cast to some other data
>> type. A function that'd try to cast input to a certain type without
>> erroring out hard would be quite useful for that.
> Corey and Vik are already talking about a non-error CAST variant.


/metoo! :-)


> Maybe we should leave this in abeyance until something shows up
> for that?  Otherwise we'll be making a nonstandard API for what
> will probably ultimately be SQL-spec functionality.  I don't mind
> that as regression-test infrastructure, but I'm a bit less excited
> about exposing it as a user feature.
> 			


I think a functional mechanism could be very useful. Who knows when the
standard might specify something in this area?


cheers


andrew

-- 

Andrew Dunstan
EDB: https://www.enterprisedb.com



В списке pgsql-hackers по дате отправления
От: Sravan Kumar
Дата:
От: Dagfinn Ilmari Mannsåker
Дата:
FAQ