RELEASE SAVEPOINT permanently removes a previously defined savepoint from the transaction stack. After release, the transaction continues but the named savepoint is discarded, freeing the database engine from tracking it. Any changes made after the savepoint remain pending until a COMMIT or ROLLBACK occurs. Attempting to roll back to a released savepoint raises an error. RELEASE does not close or commit the outer transaction—it affects only the specified savepoint. The SQL:1999 standard introduced the SAVEPOINT/ROLLBACK TO/RELEASE trio for granular transaction control. Most enterprise databases follow the syntax "RELEASE SAVEPOINT name;" but SQL Server uses "RELEASE SAVE TRANSACTION name;" while PostgreSQL also permits the shorthand "RELEASE name;". The command must run inside an open transaction; otherwise, the database will return an error such as "no active transaction" or "SAVEPOINT does not exist".
SAVEPOINT, ROLLBACK TO SAVEPOINT, COMMIT, ROLLBACK, BEGIN TRANSACTION
SQL:1999
No. It only removes a savepoint. You still need COMMIT or ROLLBACK to finish the transaction.
No single command drops all savepoints. You must release each by name or commit/rollback the entire transaction.
RELEASE keeps all changes after the savepoint and deletes the savepoint, while ROLLBACK TO SAVEPOINT undoes changes back to that point and keeps the savepoint active.
Removing unneeded savepoints frees resources and clarifies transaction flow, especially in long or nested operations.