Act III — The Whole Estate#
Year 2 · Autumn. Multi-tenant RLS wings, evolving lookup tables, CI/CD drift alarms, and a freshly acquired hostel down the block.
Moby: Give me a pyproject.toml, a MigrationApp, and a CI job — if anyone edits production behind your back, pgdorm drift exits 2 before coffee cools.
Maya: And for the old hostel next door? Let's audit its catalog and scaffold typed models before touching a single table.
Autumn, Year 2. Three chapters completing the estate: lock-free TypeTable evolution, RLS policies, deferrable & circular FKs, partitions, the full pgdorm CLI & CI gates (doctor, plan, sync, render, upgrade, baseline, drift, history, --json), and auditing, scaffolding, and adopting legacy PostgreSQL schemas cleanly into the Assimilation handbook.
Act III renovations#
| Ch. | Renovation | What you'll get | Superpowers |
|---|---|---|---|
| 6 | Wings, Policies & Living Lookups | Evolve TypeTables lock-free, manage RLS policies and deferrable FK graphs, and introspect partitioned tables. | SyncTypeTable DEFERRABLE FKs enable_rls() / create_policy() |
| 7 | The Foreman's Toolkit | Drive migrations from the pgdorm CLI in CI/CD with --json plans, exit-code-2 drift alarms, and static ReadPool checks. | pgdorm doctor plan / render / sync pgdorm drift (exit 2) |
| 8 | Buying the Building Next Door | Audit legacy schemas, compare Zero-DDL Bind vs Full Assimilation, and migrate in place with zero data loss. | audit_schema() scaffold_from_db() AdoptionMap |
← PreviousChapter 5 · Hard Hats, Locks & Power CutsChapter 5 · Lock Retries, Leases & Recovery
Next →Chapter 6 · Wings, Policies & Living LookupsChapter 6 · TypeTables, RLS & Partitions