Re: SAVEPOINT and FOR UPDATE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Thomas F(dot) O'Connell" <tfo(at)sitening(dot)com>
Cc: PgSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: SAVEPOINT and FOR UPDATE
Date: 2006-08-03 20:13:35
Message-ID: 25195.1154636015@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Thomas F. O'Connell" <tfo(at)sitening(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nikolay Samokhvalov 2006-08-03 20:29:30 Re: CREATE DATABASE
Previous Message Scott Marlowe 2006-08-03 20:13:08 Re: Well, Pervasive is now out....