Re: use SAVEPOINT function - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: use SAVEPOINT function
Date
Msg-id 20050414202100.GC2492@dcc.uchile.cl
Whole thread Raw
In response to use SAVEPOINT function  (Ying Lu <ying_lu@cs.concordia.ca>)
List pgsql-general
On Thu, Apr 14, 2005 at 04:10:18PM -0400, Ying Lu wrote:

> I'd like to know is it possible to use "SAVEPOINT" in a function? In the
> following example, I got an error when calling this function:

No; exceptions in plpgsql are implemented internally using savepoints,
so the function will automatically roll back the whole "begin ... end"
block (remember you can nest blocks if needed.)

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Java is clearly an example of a money oriented programming"  (A. Stepanov)

pgsql-general by date:

Previous
From: Ying Lu
Date:
Subject: Re: use SAVEPOINT function
Next
From: Pavel Stehule
Date:
Subject: Re: Help with process list II