Exploring Postgres Databases with Graphs
summary
Argues that static ERDs fail as documentation and presents a working CLI called Pdo CLI that introspects a running Postgres and renders up-to-date graphs (foreign keys, view dependencies, trigger cascades, grants/role inheritance) using graphviz+DOT and outputable as PNG or mermaid. Parsing uses treesitter SQL and reports a trust ratio for ambiguous PL/pgSQL. Shows that real databases cluster (example ratio ~1.24 relationships per table), rendering is near‑instant in an image‑capable terminal, and the tool successfully replaces bulky ERDs with navigable, focused views.
AI-written summary · about
chapters (13)
- 0:00Introduction and problems
- 1:54Challenges with ERDs
- 3:01The Diátaxis framework
- 5:22Critique of documentation
- 8:19ERDs as tutorials
- 10:00Tooling requirements
- 13:51Exploring pdot features
- 26:10Rendering and output
- 27:54Psychology of learning
- 36:02Cognitive chunking
- 38:44Filtering for relevance
- 45:44Group and team learning
- 49:32Q&A and conclusion
related talks
45mGraph databases, PostgreSQL and SQL/PGQ
22mQuerying & Visualizing Graphs in Postgres with Apache AGE
29mAll about graphs in Database
46mPostgreSQL as a Graph Database: Who Grabbed a Beer Together?
40mFundamentals of relational databases
41mGraphGen: Conducting Graph Analytics over Relational Databases
30mAnalyze connections and find patterns in data with graphs
27mExploring property graphs with SQL/PGQ in PostgreSQL
