Re: Call for 7.5 feature completion - Mailing list pgsql-hackers

From Nicholas Walker
Subject Re: Call for 7.5 feature completion
Date
Msg-id 430F4DB1.7070309@walkerdatanet.com
Whole thread Raw
In response to Re: Call for 7.5 feature completion  (Dennis Bjorklund <db@zigo.dhs.org>)
Responses Re: Call for 7.5 feature completion  (Matt Miller <mattm@epx.com>)
List pgsql-hackers
Dennis Bjorklund wrote:

>On Thu, 25 Aug 2005, Josh Berkus wrote:
>
>  
>
>>>    SavePoints be able to use within functions.  ( I think this involves
>>>making procedures that execute outside of a transaction)
>>>      
>>>
>>Nope, supported in 8.0 for PL/pgSQL.  Not sure about other languages.
>>    
>>
>
>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
>
>...
>
>
>You can write code like this if you issue each command from the client, 
>say using libpq, but not in pl/pgsql.
>
>  
>
I agree, and I think savepoints would be much more usefull if you could 
call them from pl/pgsql...


pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: Stuff running slooow
Next
From: Matt Miller
Date:
Subject: Re: Call for 7.5 feature completion