1COMMIT(7)                PostgreSQL 11.6 Documentation               COMMIT(7)
2
3
4

NAME

6       COMMIT - commit the current transaction
7

SYNOPSIS

9       COMMIT [ WORK | TRANSACTION ]
10

DESCRIPTION

12       COMMIT commits the current transaction. All changes made by the
13       transaction become visible to others and are guaranteed to be durable
14       if a crash occurs.
15

PARAMETERS

17       WORK
18       TRANSACTION
19           Optional key words. They have no effect.
20

NOTES

22       Use ROLLBACK(7) to abort a transaction.
23
24       Issuing COMMIT when not inside a transaction does no harm, but it will
25       provoke a warning message.
26

EXAMPLES

28       To commit the current transaction and make all changes permanent:
29
30           COMMIT;
31

COMPATIBILITY

33       The SQL standard only specifies the two forms COMMIT and COMMIT WORK.
34       Otherwise, this command is fully conforming.
35

SEE ALSO

37       BEGIN(7), ROLLBACK(7)
38
39
40
41PostgreSQL 11.6                      2019                            COMMIT(7)
Impressum