Storage, Execution & Recovery Internals

Database System Architecture

A DBMS is a set of cooperating control planes: SQL is parsed and bound into a logical statement, rewritten and optimized into a physical plan, executed against transactional storage, and supported by logging, cache, and maintenance services. The boundaries vary by engine; the data and durability invariants do not.
  • The catalog gives names physical meaning.
  • Rewrite and optimization answer different questions.
  • Execution crosses concurrency and storage boundaries.
  • Background work is part of foreground correctness.
  • Component boundaries are not universal APIs.
  • Queues reveal overload location.
Responsibility and data-flow map
Boundary contracts
StageConsumesProduces / invariant
ParseSQL textSyntax tree; no object identity yet
Bind/catalogTree + metadata snapshotResolved and typed statement
Rewrite/optimizeLogical semantics + statisticsEquivalent executable strategy
ExecutePlan + transaction contextRows/effects under visibility rules
Storage/recoveryPage requests + log recordsDurable, recoverable state