Commit

Ends the current transaction block and finalizes changes made within it.

COMMIT [ WORK | TRANSACTION ]

Use the COMMIT command to finalize the current transaction. Once a COMMIT is performed, any modifications made by the transaction are saved into the database.

The following example begins a transaction, modifies data, and then commits the modifications:

booktown=# BEGIN WORK;
BEGIN
booktown=# INSERT INTO employees VALUES (106, 'Hall', 'Timothy');
INSERT 3574402 1
booktown=# COMMIT WORK;
COMMIT