back to index
Cloud Architecture·Oct 24, 2026· 3 min read

Zero-Downtime Database Migrations with Postgres

Independent review · Reader-supported, we may earn a commission

Expand, migrate, contract: ship schema changes safely.

Expand and contract

  1. Add the new nullable column
  2. Backfill in batches
  3. Switch reads and writes
  4. Retire the old column
ALTER TABLE users ADD COLUMN display_name text;

Never lock a hot table during peak traffic.

// recommended

You might like these

Linear
Linear
Sponsored

Linear

The issue tracker developers actually enjoy.

Cloudflare Workers
Cloudflare
Sponsored

Cloudflare Workers

Deploy serverless code to 300+ cities instantly.

Keychron Q1 Pro
Keychron
Sponsored

Keychron Q1 Pro

Wireless 75% aluminum mechanical keyboard.

// promoted

Deploy to the edge

Cloudflare Workers from $5/month.

Get started