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 102 posts RSS

November 2026

PlanetScale

How we migrate TBs from Heroku without logical replication

Case study 12 min +120 XP

PlanetScale's open-source Heroku Migrator moves multi-terabyte Postgres databases off Heroku standard plans, which lack WAL access and logical replication, by using Bucardo trigger-based replication: triggers record changes in delta tables, a one-time COPY loads existing data, and a worker replays the backlog before a controlled switchover with verification.

October 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.

September 2026

August 2026

June 2026

March 2026

February 2026

January 2026

December 2025

Neon

Why Your Staging Database Never Matches Production

Opinion 8 min +80 XP

Staging databases drift from production continuously in three ways: data drift (stale dumps, sequence values that diverge so the same ID points to different records), schema drift (hotfixes, skipped migrations, mismatched indexes and extensions causing query plan divergence), and transformation drift (anonymization that breaks uniqueness, referential integrity and determinism).

November 2025

October 2025

September 2025

August 2025

July 2025

June 2025

Breaking up a monolith: How we’re unwinding a shared database at scale

Case study 20 min +200 XP

Datadog is splitting its large shared Postgres database into independently owned instances through a three-phase plan: logical separation into per-domain private schemas with explicit ACLs, access reduction so only owning teams query their tables directly, and physical separation onto managed OrgStore instances.

May 2025

Leveraging Change Data Capture For Database Migrations At Scale

Case study 6 min +60 XP

Squarespace migrated many PostgreSQL databases to CockroachDB without write downtime by streaming changes through a CDC pipeline: pgoutput logical decoding feeds per-table Debezium connectors into Kafka (Avro), and per-table Apache Beam pipelines on Dataflow upsert batched events into CRDB with checkpointing and backpressure.

April 2025

The quest for software engineering knowledge.

Look:
Layout: