Re: COMMIT after an ERROR?

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: COMMIT after an ERROR?
Дата
Msg-id m3adywzlp8.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на COMMIT after an ERROR?  (J C Lawrence <claw@kanga.nu>)
Список pgsql-general
J C Lawrence <claw@kanga.nu> writes:

> Does an error during a transaction invalidate the transaction?

Yes, the transaction goes into ABORTED state and nothing after the
error will succeed.

> Translation: Do I need to monitor for error conditions during a
> transaction and manually do the ROLLBACK in those cases?

Yup.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: COMMIT after an ERROR?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Vacuum analyze with 7 millions records ... takes 1