IT lexicon › Database › Shadow paging

Shadow paging

Database På svenska → Updated: 2026-11-11

A recovery technique that writes changes to new disk blocks instead of updating old ones, so a crash never leaves the database partially updated.

During a transaction, you create a new version of every modified page — a "shadow" copy. Only the root pointer (the database's starting point) needs atomic updating. Crash before the root update? The database is unchanged. Crash after? The shadow pages become garbage, but data is intact.

Shadow paging was used in early databases like System R. The drawback: large transactions create trash, and you need garbage collection. Write-Ahead Logging became standard instead, allowing in-place updates but offering the same crash safety.

← Back to the lexicon