----- Mensagem original -----
> Any idea how to approach it?
Hi!
https://www.postgresql.org/docs/current/sql-savepoint.html
Luis R. Weck