| От | Tom Lane |
|---|---|
| Тема | Re: Error-safe user functions |
| Дата | |
| Msg-id | 3311162.1670260197@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Error-safe user functions (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: Error-safe user functions
|
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Dec 5, 2022 at 11:09 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> efeedback? But TBH I do not think any of these are better than ereturn.
> I do. Having a macro name that is "return" plus one character is going
> to make people think that it returns.
But it does return, or at least you need to code on the assumption
that it will. (The cases where it doesn't aren't much different
from any situation where a called subroutine unexpectedly throws
an error. Callers typically don't have to consider that.)
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера