Skip to content

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

Topics Data & databases

Schema migrations

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

ClickHouse

How Socialpruf built a faster, more reliable data stack by replacing Neon with Postgres managed by ClickHouse

Case study 7 min +70 XP

Socialpruf, a social analytics platform ingesting hundreds of posts per second, moved customer-facing dashboard queries from Postgres to ClickHouse via CDC, cutting multi-second load times to millisecond aggregations.

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.

Neon

Postgres 18 Beta Is Out: 7 Features You Should Know About

Release 4 min +40 XP

Postgres 18 Beta 1 introduces an asynchronous I/O subsystem selectable via io_method (sync, worker by default, or Linux io_uring), with early benchmarks showing 2–3x gains on read-heavy queries and a new pg_aios view for in-flight I/O. pg_upgrade now preserves planner statistics (except extended stats) and adds --jobs for parallel checks and --swap for swapping data directories, reducing post-upgrade slowdowns and downtime.

April 2025

March 2025

February 2025

January 2025

December 2024

November 2024

October 2024

Neon

Database-per-User Architecture With Isolated Application Environments

Opinion 7 min +70 XP

Deploying a full copy of the application and its own Neon Postgres project per customer is justified mainly by data residency requirements and by letting customers control upgrade timing, not by per-customer customization, which turns each deployment into a separate product.

September 2024

August 2024

July 2024

June 2024

May 2024

April 2024

March 2024

February 2024

January 2024

December 2023

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

August 2023

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.

July 2023

May 2023

April 2023

February 2023

incident.io

Taking the fear out of migrations

How-to 9 min +90 XP

Data model migrations can be made low-risk with a four-step playbook: create the new model, dual-write to old and new (backfilling dependent and existing data with rerunnable jobs), read from both and alert on mismatches before switching reads behind a feature flag, then stop writing to and drop the old model. incident.io walks through the pattern using its move from hard-coded string incident statuses to a per-organisation incident_statuses table.

January 2023

The quest for software engineering knowledge.

Look:
Layout: