How PostgreSQL Works - Visualized as a City
Nikolay Samokhvalov
2024
An interactive browser-based simulation that visualizes PostgreSQL internals using a city metaphor
PGSimCity transforms complex PostgreSQL architecture into an intuitive visual experience. Instead of abstract diagrams, imagine a bustling city where each building and vehicle represents a database component working together.
PostgreSQL internals made visual and interactive
The City Hall - accepts connections and spawns backend processes
Public buses carrying data between processes
City workers maintaining operations
Record keeper ensuring data durability
Creates snapshots for recovery
Cleanup crew reclaiming space
Postmaster accepts connection and creates backend process
Backend parses, plans, and begins execution
Shared buffers checked, disk read if needed
Changes written to Write-Ahead Log
Data sent back to client application
Visualize. Learn. Understand PostgreSQL.