Re: SAVEPOINT and FOR UPDATE

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SAVEPOINT and FOR UPDATE
Дата
Msg-id 25195.1154636015@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SAVEPOINT and FOR UPDATE  ("Thomas F. O'Connell" <tfo@sitening.com>)
Ответы Re: SAVEPOINT and FOR UPDATE  (Gregory Stark <gsstark@mit.edu>)
Список pgsql-general
"Thomas F. O'Connell" <tfo@sitening.com> writes:
> I sort of expected the release of the savepoint to be tantamount to a
> commit of the subtransaction, but it doesn't appear to have been.

But you still haven't committed the outer transaction: rolling it back
must undo the effects of the subtransaction, no?  So a "release" merely
destroys the separate identity of the subtransaction and assigns all its
effects (including locks) to the parent transaction.

            regards, tom lane

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Well, Pervasive is now out....
Следующее
От: "Nikolay Samokhvalov"
Дата:
Сообщение: Re: CREATE DATABASE