postgresql_16:7.1.165.3 Notes
PostgreSQL 16 > Reference > SQL Commands > ROLLBACK > Notes
Use COMMIT (see postgresql_16:7.1.51) to successfully terminate a transaction.
Issuing ROLLBACK outside of a transaction block emits a warning and otherwise has no effect. ROLLBACK AND CHAIN outside of a transaction block is an error.