How it works
Log before data
The database must flush the relevant log record before acknowledging a commit whose data pages are not yet durable.
Sequential I/O
Appending to a log is more efficient than synchronously writing many scattered data pages for every transaction.
Crash recovery
Checkpoints limit how far recovery must scan, while redo and undo rules reconstruct committed state and discard incomplete transactions.
Replication source
Replicas can consume an ordered WAL stream, though physical and logical formats expose different levels of detail.