Alain Roger wrote:
> the purpose here, it is to solve my problem with a transaction inside a function.
You cannot handle transactions inside a function (apart from using EXCEPTION blocks).
A PostgreSQL function is always executed in a single transaction.
All SQL statements you issue from within a function are in that same transaction.
Yours,
Laurenz Albe