Search Postgresql Archives

Re: how to use SAVEPOINT in stored function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frank.Motzkat@xxxxxxx writes:
> I would like using savepoints in my stored functions but I always get the 
> error
> ERROR:  SPI_execute_plan failed executing query "SAVEPOINT my_savepoint": 

In plpgsql, you're supposed to use exception blocks instead.  See
http://www.postgresql.org/docs/8.1/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux