Re: Does Postgres rollback transactions on all errors?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Does Postgres rollback transactions on all errors?
Дата
Msg-id 6570.987976602@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Does Postgres rollback transactions on all errors?  (Ryan Ho <ryanho@cyberronins.com>)
Список pgsql-novice
Ryan Ho <ryanho@cyberronins.com> writes:
> In a transaction, should any of the sql statements fail to execute, does Postgres rollback all the previous
statements?

Yes.

> 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. 

Hard to believe.  Can you provide some evidence?

            regards, tom lane

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

Предыдущее
От: Steve Waldman
Дата:
Сообщение: Re: BLOB Type ?
Следующее
От: "Eric Naujock "
Дата:
Сообщение: Re: Does Postgres rollback transactions on all errors?