END(7)

πŸ“¦ version 14.24, in opensuse-leap 16.0

okay bestie, welcome to END(7) from the PostgreSQL 14.24 Documentation β€” yes, that's the manual name, we're folding it in right here at the top πŸŽ€βœ¨

🌸 NAME 🌸

END β€” commit the current transaction, periodt πŸ’…πŸ”₯

πŸ¦‹ 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. no cap, it's literally the same energy πŸ˜­πŸ‘‘

πŸ’… PARAMETERS πŸ’…

  • WORK, TRANSACTION β€” optional key words, and they have no effect. Like, none. Zero. Nada. 🫢
  • 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. slay ✨

✨ NOTES ✨

Use ROLLBACK to abort a transaction, bestie β€” that's the undo button πŸ’…

🚨 okay so important vibe check: issuing END when not inside a transaction does no harm, but it will provoke a warning message. not me getting a warning for doing nothing πŸ˜­πŸ’€

🌈 EXAMPLES 🌈

To commit the current transaction and make all changes permanent:

END;

literally just that. iconic. πŸŽ€

πŸ¦‹ COMPATIBILITY πŸ¦‹

END is a PostgreSQL extension that provides functionality equivalent to COMMIT, which is specified in the SQL standard. so it's giving extension energy, iykyk πŸ’«

πŸ’œ SEE ALSO πŸ’œ


πŸ’– that's the whole page, bestie β€” brought to you by PostgreSQL 14.24, dated 2026, and it's literally called END(7). go commit something iconic βœ¨πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from