END(7)

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

πŸ’– 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 β€” 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 to abort a transaction. Don't just sit there. 😭
  • Issuing END when 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