Re: PG_CATCH used without PG_RETHROW

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PG_CATCH used without PG_RETHROW
Дата
Msg-id 31481.1441308876@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PG_CATCH used without PG_RETHROW  (Greg Stark <stark@mit.edu>)
Ответы Re: PG_CATCH used without PG_RETHROW  (正华吕 <kainwen@gmail.com>)
Список pgsql-hackers
Greg Stark <stark@mit.edu> writes:
> My understanding is that PG_TRY/PG_CATCH doesn't save enough state to
> avoid rethrowing errors and if you want to actually continue the
> transaction you must use a subtransaction. As a result I was under the
> impression it was mandatory to PG_RETHROW as a result.

> If that's the case then I think I just came across a bug in
> utils/adt/xml.c where there's no PG_RETHROW:

The reason we think that's OK is that we assume libxml2 does not call back
into the general backend code, so there is no PG state we'd have to undo.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_ctl/pg_rewind tests vs. slow AIX buildfarm members
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pg_ctl/pg_rewind tests vs. slow AIX buildfarm members