END(7)
π NAME π
END β commit the current transaction. yes bestie, this is the END(7) page π«Ά
β¨ SYNOPSIS β¨
END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
πΈ DESCRIPTION πΈ
okay so END commits the current transaction. Every change made by that transaction becomes visible to others, and it's guaranteed to be durable if a crash occurs β that's the whole vibe. This command is a PostgreSQL extension that is equivalent to COMMIT. slay π
π PARAMETERS π
WORKβ optional key word. It has no effect. literally just there for the aesthetic β¨TRANSACTIONβ optional key word. Also no effect. matching energy π«Ά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.
π¦ NOTES π¦
Use ROLLBACK to abort a transaction. π
π¨ Issuing END when you're not inside a transaction does no harm, but it will provoke a warning message. no cap.
π EXAMPLES π
To commit the current transaction and make all changes permanent:
END;
periodt. π
β 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)
mwah π β this page is from PostgreSQL 16.15, dated 2026, and it's the END(7) manual page. periodt β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-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