Re: check_recovery_target_lsn() does a PG_CATCH without a throw

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: check_recovery_target_lsn() does a PG_CATCH without a throw
Дата
Msg-id 31260.1560264568@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: check_recovery_target_lsn() does a PG_CATCH without a throw  (Sergei Kornilov <sk@zsrv.org>)
Ответы Re: check_recovery_target_lsn() does a PG_CATCH without a throw  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Sergei Kornilov <sk@zsrv.org> writes:
>> That's not OK.

> hmm. Did you mean catching only needed errors by errcode? Something like attached?

No, he means you can't EVER catch an error and not re-throw it, unless
you do a full (sub)transaction abort and cleanup instead of re-throwing.
We've been around on this repeatedly because people want to believe they
can take shortcuts.  (See e.g. discussions for the jsonpath stuff.)
It doesn't reliably work to do so, and we have a project policy against
trying, and this code should never have been committed in this state.

            regards, tom lane



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

Предыдущее
От: Jose Luis Tallon
Дата:
Сообщение: Re: [PATCH] Implement uuid_version()
Следующее
От: Andres Freund
Дата:
Сообщение: Re: check_recovery_target_lsn() does a PG_CATCH without a throw