Re: Nested Transactions, Abort All

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Nested Transactions, Abort All
Дата
Msg-id 40EBA79B.7000101@opencloud.com
обсуждение исходный текст
Ответ на Re: Nested Transactions, Abort All  (Dennis Bjorklund <db@zigo.dhs.org>)
Ответы Re: Nested Transactions, Abort All
Список pgsql-hackers
Dennis Bjorklund wrote:
> On Tue, 6 Jul 2004, Alvaro Herrera wrote:
> 
> 
>>We can later implement savepoints, which will have "SAVEPOINT foo" and
>>"ROLLBACK TO foo" as interface.  (Note that a subtransaction is slightly
>>different from a savepoint, so we can't use ROLLBACK TO <foo> in
>>subtransactions because that has a different meaning in savepoints).
> 
> 
> What is the semantic difference?

Savepoint "ROLLBACK TO foo" doesn't invalidate 'foo'. If "SAVEPOINT foo" 
is 'start new subtransaction foo', "ROLLBACK TO foo" must be 'roll back 
subtransaction foo and all children; start new subtransaction foo'.

-O


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

Предыдущее
От: Honza Pazdziora
Дата:
Сообщение: Re: Nested Transaction TODO list
Следующее
От: Andreas Pflug
Дата:
Сообщение: Re: ALTER xx SET TABLESPACE (was bug in DROP TABLESPACE)