🐘 PostgreSQL & SQL — Complete Notes
Mental Model First: Every section opens with the “why” before the “how”
Table of Contents
- Mental Model: How PostgreSQL Works Internally
- Data Types — Choosing Right
- DDL — Schema Design Patterns
- DML — CRUD with Edge Cases
- Joins — Visual Mental Model
- Aggregations & GROUP BY
- Subqueries & CTEs
- Window Functions
- Indexes — The Performance Engine
- EXPLAIN & Query Planning
- Transactions & Isolation Levels
- Constraints & Data Integrity
- Views, Materialized Views & Functions
- Partitioning
- JSON & JSONB
- Performance Tuning Checklist