rollback to savepoint – rollback to a savepoint within the current
rollback to savepoint savepoint-name ;
Rollback all commands that were executed after the savepoint was established. The savepoint remains valid and can be rolled back to again later, if needed.
rollback to savepoint implicitly destroys all savepoints that
were established after the named savepoint.
start transaction; # ... declare savepoint f1; # ... rollback to savepoint f1; # ... rollback;