Re: Nested transactions

From: Bill Todd <pg(at)dbginc(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Nested transactions
Date: 2009-10-12 23:18:41
Message-ID: 4AD3B951.1040502@dbginc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe wrote:
> On Sun, Oct 11, 2009 at 8:41 PM, Bill Todd <pg(at)dbginc(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2009-10-12 23:41:30 Re: Nested transactions
Previous Message David Fetter 2009-10-12 21:13:23 Re: creating a function with another function