In PostgreSQL every statement runs inside a transaction; without BEGIN each statement gets its own (autocommit). COMMIT makes the changes permanent and ROLLBACK discards them.