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 2796288.1694528966@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Document that PG_TRY block cannot have a return statement  (Serpent <serpent7776@gmail.com>)
Список pgsql-hackers
Serpent <serpent7776@gmail.com> writes:
> I created a tiny patch that documents that the code block following
> PG_TRY() cannot have any return statement.

AFAIK, this is wrong.  The actual requirement is already stated
in the comment:

 * ... The error recovery code
 * can either do PG_RE_THROW to propagate the error outwards, or do a
 * (sub)transaction abort.

            regards, tom lane



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

Предыдущее
От: Alexander Kukushkin
Дата:
Сообщение: Re: pg_rewind WAL segments deletion pitfall
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Adding a pg_get_owned_sequence function?