Write-ahead log
Also called: WAL, Redo log
A log where the database records every change before applying it, so committed data survives crashes.
Definition
A commit returns once its log record is safely on disk; the changed data pages are written later. After a crash the database replays the log to restore every committed change. The same log feeds replicas (streaming replication) and change data capture tools. PostgreSQL calls it the WAL; MySQL's InnoDB has the redo log; SQLite has a WAL mode that also lets readers work during a write.
In practice
The server loses power a millisecond after COMMIT; on restart PostgreSQL replays the WAL and the order is there.
Learn it in context
Lessons that use this term.