[ref 14] PostgreSQL doesnŐt follow the SQL standard when you create two SAVEPOINTs within the same transaction. PostgreSQL simply hides the old SAVEPOINT—the SQL standard states that the old SAVEPOINT should be destroyed. If you need the SQL-prescribed behavior, you can destroy the old SAVEPOINT with the command RELEASE SAVEPOINT savepoint-name.