Re: Two questions about savepoints: Bug or feature? - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: Two questions about savepoints: Bug or feature?
Date
Msg-id 6EE64EF3AB31D5448D0007DD34EEB34101AF1B@Herge.rcsinc.local
Whole thread Raw
In response to Two questions about savepoints: Bug or feature?  (Devrim GUNDUZ <devrim@gunduz.org>)
Responses Re: Two questions about savepoints: Bug or feature?  (Devrim GUNDUZ <devrim@gunduz.org>)
List pgsql-hackers
> test=# ROLLBACK to devrim;
> ROLLBACK
> test=# ROLLBACK to devrim;
> ROLLBACK
>
> ...and it goes on forever. Is it a feature or a bug?
>

feature.  You can rollback to a savepoint multiple times (0 or more
savepoints might intervene)


> Are these all intended behaviors? I thought we wouldn't be able to
give
> more than 1 same name to savepoints in a transaction, am I right?

Nope.  Read:
http://www.destructor.de/firebird/1.5/savepoints.txt

Merlin


pgsql-hackers by date:

Previous
From: Devrim GUNDUZ
Date:
Subject: Two questions about savepoints: Bug or feature?
Next
From: Tom Lane
Date:
Subject: Re: Anybody have an Oracle PL/SQL reference at hand?