END(7)
π END β bestie, we're locking it IN π
PostgreSQL 18.6 Documentation Β· section 7 Β· the one where you finally press send π«Ά
β¨ NAME β¨
END β commit the current transaction π
πΈ SYNOPSIS πΈ
END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
π¦ DESCRIPTION π¦
Okay so, END commits the current transaction. That's it, that's the whole vibe. Every change you made in that transaction becomes visible to others, and it's guaranteed to be durable if a crash occurs β like, bestie, it's written down, it's real, it survives the chaos. π
This command is a PostgreSQL extension that is equivalent to COMMIT. Same energy, different name. Iconic of them tbh. π
π PARAMETERS π
WORKTRANSACTION
Optional key words. They have no effect. Literally zero. They're just there. Decorative. Fr fr. π
AND CHAIN
If AND CHAIN is specified, a new transaction is immediately started with the same transaction characteristics (see SET TRANSACTION (SET_TRANSACTION(7))) as the just finished one. Otherwise, no new transaction is started. So it's like... you close the door and instantly open the exact same door again. Main character behavior. β¨
π NOTES π
Use ROLLBACK to abort a transaction. Different button, different outcome, choose wisely bestie. πͺ
Issuing END when you're not inside a transaction does no harm, but it will provoke a warning message. So like, it won't yell at you, but it will side-eye you a little. π
π EXAMPLES π
To commit the current transaction and make all changes permanent:
END;
Slay. Done. Committed. Periodt. π
π§ COMPATIBILITY π§
END is a PostgreSQL extension that provides functionality equivalent to COMMIT, which is specified in the SQL standard. So the standard girlies get COMMIT, and we also get END because we're extra. π
π SEE ALSO π
BEGIN(7), COMMIT(7), ROLLBACK(7)
PostgreSQL 18.6 Β· 2026 β okay bye bestie, go commit something (a transaction, not a crime π«Ά) β¨ππΈ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql18 18.6-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms