On 12.07.2024 16:42, Tom Lane wrote:
>
> PL/pgSQL does not support savepoints (SAVEPOINT/ROLLBACK TO
> SAVEPOINT/RELEASE SAVEPOINT commands). Typical usage patterns
> for savepoints can be replaced by blocks with exception handlers
> (see 43.6.8). Under the hood, a block with exception handlers
> forms a subtransaction, which means that transactions cannot
> be ended inside such a block.
>
> regards, tom lane
Yes, this will be fine.
--
Олег