END(7)

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

πŸ’– 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 β€” 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.

πŸ’‘ NOTES πŸ’‘

  • Use ROLLBACK(7) to abort a transaction.
  • Issuing END when 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