open atlas

sql-postgres

SQL & PostgreSQL, deep

The SQL language and Postgres internals for senior engineers — joins, windows, CTEs, transactions, the planner.

10 units·47 lessons·~12 h

Start track
00

Start from zero

Before the deep material: what SQL is and how Postgres executes a query.
01

SQL foundations

The mental model: SQL describes sets, not steps.
02

Joins, deeply

Every join is a filtered Cartesian product — see that and outer/semi/anti/lateral follow.
03

Aggregation & grouping

GROUP BY collapses rows into buckets; everything in SELECT must be per-bucket.
04

Window functions

Windows aggregate without collapsing rows — the senior SQL superpower.
05

CTEs & recursion

WITH names a subquery; WITH RECURSIVE walks trees and graphs in pure SQL.
06

Types & modeling

Postgres has a rich type system — model with it, not around it.
07

Transactions & concurrency

Isolation levels are promises about what concurrent transactions can see.
08

Internals & tuning

Read the plan, fix the estimate, watch the bloat — the tuning loop.
09

Putting it together

Design and tune a real query system end to end.

Build with this track

Guided projects that exercise what you learn here.

Next track

JavaScript Engine internals

How V8 runs your code — parsing, bytecode, hidden classes, the JIT, garbage collection, and how to stay fast.