postgresql_16:7.1.168.3 Notes
PostgreSQL 16 > Reference > SQL Commands > SAVEPOINT > Notes
Use ROLLBACK TO (see postgresql_16:7.1.167) to rollback to a savepoint. Use RELEASE SAVEPOINT (see postgresql_16:7.1.162) to destroy a savepoint, keeping the effects of commands executed after it was established.
Savepoints can only be established when inside a transaction block. There can be multiple savepoints defined within a transaction.