Skip to content
masterclass Buddy

PostgreSQL · Command

SAVEPOINT

SAVEPOINT marks a position inside a PostgreSQL transaction. You can later undo changes after that mark without undoing earlier work.

Last updated

Syntax

SAVEPOINT savepoint_name

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

Subscribe
  • BEGIN
  • COMMIT
  • RELEASE SAVEPOINT
  • ROLLBACK
  • ROLLBACK TO SAVEPOINT

Source: SAVEPOINT. Checked 2026-11-03.