Transactions and ACID in PostgreSQL

A transaction is a group of statements that either all happen or none happen.