Does Postgres rollback transactions on all errors?

Поиск
Список
Период
Сортировка
От Ryan Ho
Тема Does Postgres rollback transactions on all errors?
Дата
Msg-id 3AE3000A.B6DB7FDD@cyberronins.com
обсуждение исходный текст
Ответ на Question re how to secure a postgresql 7.1 installation.  ("Eric Naujock " <naujocke@abacusii.com>)
Ответы Re: Does Postgres rollback transactions on all errors?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
In a transaction, should any of the sql statements fail to execute, does Postgres rollback all the previous statements?

To my best knowledge, it should but I have observed that on some occasions, half my transaction can get committed,
whilethe other half is unsuccessful. 

Do I need check for failed transactions and enforce a rollback in my code or is it done by the backend automatically?

Thanks in advance
Ryan


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

Предыдущее
От: Ryan Ho
Дата:
Сообщение: Re: BLOB Type ?
Следующее
От: Steve Waldman
Дата:
Сообщение: Re: BLOB Type ?