Skip to content
masterclass Buddy

PostgreSQL · Command

COMMIT

COMMIT ends the current transaction. Its changes become visible to other sessions and are durable if a crash occurs. AND CHAIN immediately starts another transaction with the same transaction characteristics.

Last updated

Syntax

COMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • BEGIN
  • ROLLBACK
  • SET TRANSACTION

Source: PostgreSQL: Documentation: 18: COMMIT. Checked 2026-11-03.