Re: Nested transactions

Поиск
Список
Период
Сортировка
От Bill Todd
Тема Re: Nested transactions
Дата
Msg-id 4AD3B951.1040502@dbginc.com
обсуждение исходный текст
Ответ на Re: Nested transactions  (Scott Marlowe <scott.marlowe@gmail.com>)
Ответы Re: Nested transactions  (Jeff Davis <pgsql@j-davis.com>)
Re: Nested transactions  (Scott Marlowe <scott.marlowe@gmail.com>)
Список pgsql-general
Scott Marlowe wrote:
On Sun, Oct 11, 2009 at 8:41 PM, Bill Todd <pg@dbginc.com> wrote: 
Does PostgreSQL support nested transactions as shown below?

BEGIN;
 ...do some stuff...
 BEGIN;
  ...more stuff...
 COMMIT;
COMMIT;   
Postgresql uses savepoints.

 
Savepoints do not provide the same functionality as nested or parallel transactions because you cannot commit a savepoint. If  I need a second transaction I can always open a second connection so it is easy to get the behavior I need. Thanks.

Bill

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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: creating a function with another function
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Nested transactions