END

An SQL command for committing the current transaction

END is a transaction command for committing the current transaction. It is equivalent to the SQL standard COMMIT command.

END has always been present in PostgreSQL.

Change history

Examples

Basic execution example for END:

postgres=# BEGIN;
BEGIN

postgres=*# SELECT 1;
 ?column?
----------
        1
(1 row)

postgres=*# END;
COMMIT
  • PostgreSQL documentation: END

Categories

SQL command, Transaction command

See also

COMMIT, ROLLBACK