Re: Transaction Questions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Transaction Questions
Дата
Msg-id 3743.1140797696@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Transaction Questions  (Richard Kut <rkut@intelerad.com>)
Ответы Re: Transaction Questions  (Richard Kut <rkut@intelerad.com>)
Список pgsql-novice
Richard Kut <rkut@intelerad.com> writes:
> and that works as expected. However, if I get an error within the transaction
> anywhere after the SAVEPOINT command, then the entire transaction fails, and
> any changes made prior to the SAVEPOINT are rolled back.

Only because you deliberately told the system to roll back the entire
transaction.  You want to use ROLLBACK TO SAVEPOINT instead.

            regards, tom lane

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

Предыдущее
От: Richard Kut
Дата:
Сообщение: Transaction Questions
Следующее
От: Richard Kut
Дата:
Сообщение: Re: Transaction Questions