Re: Call for 7.5 feature completion

From: Matt Miller <mattm(at)epx(dot)com>
To: Nicholas Walker <nick(at)walkerdatanet(dot)com>
Cc: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org, Rod Taylor <pg(at)rbt(dot)ca>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: Call for 7.5 feature completion
Date: 2005-08-26 17:39:26
Message-ID: 1125077966.3660.38.camel@dbamm01-linux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 2005-08-26 at 13:13 -0400, Nicholas Walker wrote:
> >You can't use savepoints, you can trap errors which is implemented using
> >savepoints. You still might want to write code like this:
> >
> >BEGIN
> >
> >....
> >
> >SAVEPOINT foo;
> >
> >....
> >
> >IF SOME_ERROR_CODE = 1234 THEN
> > ROLLBACK TO SAVEPOINT foo;
> >END
> >
> >...
> I agree, and I think savepoints would be much more usefull if you could
> call them from pl/pgsql...

Maybe if PL/pgSQL had user-defined exceptions then the language's
identity of savepoints and exception blocks would be a little easier to
work with. Is anything happening with the patch for user-defined
exceptions, posted at
http://archives.postgresql.org/pgsql-patches/2005-06/msg00475.php (and
also discussed elsewhere)?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2005-08-26 17:45:22 Re: Call for 7.5 feature completion
Previous Message Nicholas Walker 2005-08-26 17:13:21 Re: Call for 7.5 feature completion