Skip to content

Epilogue — Sunrise Over the Tagus#

The next morning, 06:12. Warm Atlantic sunlight spills across the Lisbon lobby. Every elephant is snoring peacefully, the dashboard is green, and a fresh sticky note sits beside a warm pastel de nata.

The next morning, 06:12. Warm Atlantic sunlight spills across the Lisbon lobby. Every elephant is snoring peacefully, the dashboard is green, and a fresh sticky note sits beside a warm pastel de nata.

Jumbo: Splendid night's rest! Not a single double booking, my loyalty points updated immediately, and my suitcase arrived intact.

Ferris: Twenty shifts, zero raw SQL strings, and look at pg_stat_statements — spotless.

Maya: Remember when the spreadsheet crashed under Bram? We've come a long way since 23:45.

Panda: Okay, okay — I deleted my for-loop script. Mostly.

Twenty chapters ago, Maya was handed a crashed spreadsheet and ninety seconds before Jumbo checked in. Look at everything you and Maya built on PostgreSQL and pgdorm:

  • Act I (The First Night): Typed tables, RETURNING, pg.UNSET partial updates, PostgreSQL RETURNING OLD/NEW, UNNEST bulk inserts, = ANY($1), TypeTable lookups, TypeDecorator codecs, uuidv7(), virtual generated columns, and partial indexes.
  • Act II (Full House): Symmetric JOIN … USING, JoinLintError, 2-RTT split_load(), PostgreSQL WITHOUT OVERLAPS temporal keys, STI & CTI inheritance without string discriminators, savepoints, advisory locks, FOR UPDATE SKIP LOCKED, and transactional LISTEN/NOTIFY.
  • Act III (The Wi-Fi Era): Row-value keyset pagination with EXPLAIN assertions, LATERAL JSONB nesting, 1-RTT pipelines with pg.currval(), compile-once pg.prepare(), ReadPool, server-side portal streaming, ROLLUP / FILTER / QUALIFY analytics, and typed WITH RECURSIVE (SEARCH / CYCLE) trees.
  • Act IV (Expansion): Ephemeral pg_temp staging fused with MERGE … RETURNING in 1 RTT, PgBouncer-safe Row-Level Security via local_settings=, monthly range partitioning with proven pruning, and zero-copy Arrow relays linking PostgreSQL, Polars, and DuckDB.
  • Act V (Going Live): FastAPI routes derived straight from tables (pg.Create[T], pg.Patch[T], pool.json()), online-safe schema evolution (CONCURRENTLY, NOT VALID / VALIDATE), and CI-enforced RTT and index tests.

Where to go next#