END(7)
π END(7) β commit the current transaction, bestie π
πΈ NAME πΈ
END β commit the current transaction. That's the whole name section, and honestly? Iconic. π
β¨ 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 they are guaranteed to be durable if a crash occurs. Periodt. π
This command is a PostgreSQL extension that is equivalent to COMMIT.
π¦ PARAMETERS π¦
WORKβ optional key word. It has no effect. Like, zero. πTRANSACTIONβ optional key word. It has no effect. Also zero. π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
ROLLBACKto abort a transaction. Don't just sit there. π - Issuing
ENDwhen not inside a transaction does no harm, but it will provoke a warning message. No cap, it's just gonna warn you.
π EXAMPLES π
To commit the current transaction and make all changes permanent:
END;
π« COMPATIBILITY π«
END is a PostgreSQL extension that provides functionality equivalent to COMMIT, which is specified in the SQL standard. So it's giving PostgreSQL-only convenience, while the SQL-standard one is COMMIT. π
π₯ SEE ALSO π₯
BEGIN(7), COMMIT(7), ROLLBACK(7)
That's the whole page, bestie β mwah π. This beauty is from PostgreSQL 17.11 and dated 2026, and yes, the manual page is END(7). π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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