Re: Nested Transactions, Abort All

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: Nested Transactions, Abort All
Дата
Msg-id Pine.LNX.4.44.0407070806560.2838-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на Re: Nested Transactions, Abort All  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Ответы Re: Nested Transactions, Abort All
Re: Nested Transactions, Abort All
Список pgsql-hackers
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?

In my eye the subtransactions and the savepoints are basically the 
same thing except the label that is used. If that is the only difference?
why are we implementing our own extension for subtransactions instead of 
implementing this standard feature.

Of course the label stuff is a little more complicated, but all the really
hard parts should be the same as what have already been done. The most 
naive implementation of the labels is to have a mapping from a label to 
the number of subcommit (for RELEASE SAVEPOINT) or subrolllbacks (for 
ROLLBACK TO SAVEPOINT) to execute.

-- 
/Dennis Björklund



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Nested Transactions, Abort All
Следующее
От: Honza Pazdziora
Дата:
Сообщение: Re: Adding VERSION to startup log output