postgresql_16:7.1.168.1 Description
PostgreSQL 16 > Reference > SQL Commands > SAVEPOINT > Description
SAVEPOINT establishes a new savepoint within the current transaction.
A savepoint is a special mark inside a transaction that allows all commands that are executed after it was established to be rolled back, restoring the transaction state to what it was at the time of the savepoint.