RELEASE_SAVEPOINT(7pg15)
π RELEASE_SAVEPOINT π
okay bestie, this is the RELEASE SAVEPOINT(7) page from the PostgreSQL 15.19 Documentation, and itβs genuinely giving βtiny command, big cleanup energy.β π§Ήβ¨
πΈ NAME πΈ
RELEASE_SAVEPOINT β destroy a previously defined savepoint. periodt. π
β¨ SYNOPSIS β¨
RELEASE [ SAVEPOINT ] savepoint_name
π¦ DESCRIPTION π¦
okay so RELEASE SAVEPOINT destroys a savepoint previously defined in the current transaction. itβs literally the βbye, savepointβ button. π
destroying a savepoint makes it unavailable as a rollback point, but it has no other user visible behavior. no extra drama, no surprise rewinds. π
it does not undo the effects of commands executed after the savepoint was established. if thatβs what you want, go see ROLLBACK TO SAVEPOINT (ROLLBACK_TO_SAVEPOINT(7)). π
destroying a savepoint when it is no longer needed allows the system to reclaim some resources earlier than transaction end. resource cleanup slay. π§
RELEASE SAVEPOINT also destroys all savepoints that were established after the named savepoint was established. itβs giving βand everyone after you, goodbye.β π
π PARAMETERS π
savepoint_nameβ the name of the savepoint to destroy. cute name, permanent goodbye. π
β NOTES β
- specifying a savepoint name that was not previously defined is an error. not the vibe. π¨
- it is not possible to release a savepoint when the transaction is in an aborted state. hard no. π ββοΈ
- if multiple savepoints have the same name, only the most recently defined unreleased one is released. repeated commands will release progressively older savepoints. so yeah, they queue up like unread messages. π
π EXAMPLES π
to establish and later destroy a savepoint, bestie:
BEGIN;
INSERT INTO table1 VALUES (3);
SAVEPOINT my_savepoint;
INSERT INTO table1 VALUES (4);
RELEASE SAVEPOINT my_savepoint;
COMMIT;
the above transaction will insert both 3 and 4. both! iconic. π₯
π COMPATIBILITY π
this command conforms to the SQL standard. the standard specifies that the key word SAVEPOINT is mandatory, but PostgreSQL allows it to be omitted. PostgreSQL being flexible? we love to see it. π
π«Ά SEE ALSO π«Ά
BEGIN(7)COMMIT(7)ROLLBACK(7)ROLLBACK TO SAVEPOINT(ROLLBACK_TO_SAVEPOINT(7))SAVEPOINT(7)
go read the whole friend group, iykyk. πβ¨
and thatβs the page, bestie π«Ά β brought to you by PostgreSQL 15.19, dated 2026, and yes the manual is RELEASE SAVEPOINT(7). no cap, go release those savepoints. π
π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms