Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Schema migrations Remove topic Schema migrations Clear all 11 posts RSS

2026

Supabase

Declarative Schemas 2.0 with pg-delta

Announcement 11 min +110 XP

Supabase replaced migra with pg-delta, its own open-source Postgres diff engine, as the generator behind declarative schema migrations in the Supabase CLI. pg-delta loads schema files and migration history into two shadow databases, diffs them by reading the system catalog, and orders output with a catalog-derived dependency graph.

2025

2023

Supabase

Dynamic Table Partitioning in Postgres

How-to 20 min +200 XP

Postgres range partitioning can be retrofitted onto an existing "large table" (here, 500 million chat messages) without blocking queries by creating standalone daily child tables, bulk-loading them, adding a CHECK constraint that matches the partition range, and only then running ATTACH PARTITION so Postgres skips the validation scan and its blocking lock.

Supabase

Supabase Local Dev: migrations, branching, and observability

Announcement 6 min +60 XP

Supabase's CLI gains a batch of Postgres local-development features: `supabase inspect db` with 19 diagnostic commands adapted from Heroku's pg-extras, `db dump` backups built on pg_dump, migration squashing and diffing via migra, pgTAP testing with `supabase test`, plpgsql_check linting, seeding, and TypeScript type generation that now detects foreign-key relationships.

2022

2021

The quest for software engineering knowledge.

Look:
Layout: