Re: Document that PG_TRY block cannot have a return statement

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Document that PG_TRY block cannot have a return statement
Дата
Msg-id 2801961.1694532176@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Document that PG_TRY block cannot have a return statement  (Serpent <serpent7776@gmail.com>)
Ответы Re: Document that PG_TRY block cannot have a return statement  (Serpent <serpent7776@gmail.com>)
Список pgsql-hackers
Serpent <serpent7776@gmail.com> writes:
> I'm talking about this part:

> PG_TRY();
> {
>   ... code that might throw ereport(ERROR) ...
> }

Ah.  Your phrasing needs work for clarity then.  Also, "return"
is hardly the only way to break it; break, continue, or goto
leading out of the PG_TRY are other possibilities.  Maybe more
like "The XXX code must exit normally (by control reaching
the end) if it does not throw ereport(ERROR)."  Not quite sure
what to use for XXX.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: stepan rutz
Дата:
Сообщение: Re: Detoasting optionally to make Explain-Analyze less misleading
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Detoasting optionally to make Explain-Analyze less misleading