END(7)
π END(7) β commit the current transaction π
okay so bestie, welcome to END(7) β the PostgreSQL page for committing the current transaction. lowkey one of the shortest glow-ups in the manual, and it still ate. β¨
π NAME π
END β commit the current transaction.
β¨ SYNOPSIS β¨
END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
π DESCRIPTION π
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(7). no cap, that's the main character move β your changes are out of drafts and into the group chat. π
π PARAMETERS π
WORKβ optional key word. It has no effect. literally just there for the vibe check. π«ΆTRANSACTIONβ optional key word. It has no effect either. decorative, bestie. π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(7)to abort a transaction. - Issuing
ENDwhen not inside a transaction does no harm, but it will provoke a warning message.
β οΈ heads-up, bestie: outside a transaction, END is harmless, but it will provoke a warning message. not me getting side-eyed by the server for doing nothing wrong π
π EXAMPLES π
To commit the current transaction and make all changes permanent:
END;
π¦ COMPATIBILITY π¦
END is a PostgreSQL extension that provides functionality equivalent to COMMIT(7), which is specified in the SQL standard.
π SEE ALSO π
okay that's the whole END(7) page, bestie π
it's from the PostgreSQL 13.23 documentation, dated 2025 β go commit that transaction and make it iconic, periodt. ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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