Re: 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL

Sergei Kornilov <sk@zsrv.org>

From: Sergei Kornilov <sk@zsrv.org>
To: David Klika <david.klika@atlas.cz>, "pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Date: 2018-08-23T12:41:21Z
Lists: pgsql-bugs
Hello

> This routine works well on postgres v10:
it works? Or is only accepted as input? I got error on function call.
I thought plpgsql cannot directly uses savepoints, only implicitly with begin ... exception ... end block ( https://www.postgresql.org/docs/current/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING )

Well, you can still create this function with set check_function_bodies to off

regards, Sergei