COMMIT after an ERROR?

Поиск
Список
Период
Сортировка
От J C Lawrence
Тема COMMIT after an ERROR?
Дата
Msg-id 7034.1002874703@kanga.nu
обсуждение исходный текст
Ответы Re: COMMIT after an ERROR?  (Nathan Clemons <nathan@windsofstorm.net>)
Re: COMMIT after an ERROR?  (Charles Tassell <ctassell@isn.net>)
Re: COMMIT after an ERROR?  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
Does an error during a transaction invalidate the transaction?

eg

  BEGIN
  SomeQueryThatSucceeds
  SomeQueryThatFails
  SomeOtherQueryThatSucceeds
  COMMIT

Will the transaction successfully COMMIT, or will the COMMIT fail?

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

--
J C Lawrence
---------(*)                Satan, oscillate my metallic sonatas.
claw@kanga.nu               He lived as a devil, eh?
http://www.kanga.nu/~claw/  Evil is a name of a foeman, as I live.

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

Предыдущее
От: Allan Engelhardt
Дата:
Сообщение: Re: error codes when running pg_dumpall from a perl script.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Postgres server locks up