END(7)
π END(7) β commit the current transaction β¨
From PostgreSQL 15.19 Documentation β manual name folded in right here, bestie π«Ά
πΈ NAME πΈ
END β commit the current transaction. Periodt.
β¨ SYNOPSIS β¨
END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
π DESCRIPTION π
Okay so END commits the current transaction. All changes made by the transaction become visible to others and are guaranteed to be durable if a crash occurs. This command is a PostgreSQL extension that is equivalent to COMMIT. No cap.
π PARAMETERS π
WORKβ Optional key word. It has no effect. πTRANSACTIONβ Optional key word. It has no effect. πAND CHAINβ IfAND CHAINis specified, a new transaction is immediately started with the same transaction characteristics (seeSET TRANSACTION (SET_TRANSACTION(7))) as the just finished one. Otherwise, no new transaction is started. That's the whole vibe.
π¦ NOTES π¦
Use ROLLBACK to abort a transaction. Simple as that.
Issuing END when not inside a transaction does no harm, but it will provoke a warning message. So harmless, but the warning is gonna call you out.
π EXAMPLES π
To commit the current transaction and make all changes permanent:
END;
Slay. That's it. That's the commit.
π COMPATIBILITY π
END is a PostgreSQL extension that provides functionality equivalent to COMMIT, which is specified in the SQL standard. iykyk.
π SEE ALSO π
BEGIN(7), COMMIT(7), ROLLBACK(7) β go give these iconics a read too.
π mwah, bye bestie π β this page comes from PostgreSQL 15.19 Documentation, dated 2026, and its whole manual-page name is END(7). πβ¨
π¦ 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