COMMIT after an ERROR?

Поиск
Список
Период
Сортировка
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