postgresql_16:7.1.162.3 Notes
PostgreSQL 16 > Reference > SQL Commands > RELEASE SAVEPOINT > Notes
Specifying a savepoint name that was not previously defined is an error.
It is not possible to release a savepoint when the transaction is in an aborted state; to do that, use (see postgresql_16:7.1.167).
If multiple savepoints have the same name, only the most recently defined unreleased one is released. Repeated commands will release progressively older savepoints.