Posts about migrations
Articles, guides and engineering notes about migrations from the Relyt One team.
2 articles

timestamp vs timestamptz in Postgres: what's actually stored, and how to switch without a rewrite
Neither PostgreSQL timestamp type stores a time zone. Both are 8 bytes, and the difference is how values are converted on the way in and out. Measured on Postgres 17.11: session TimeZone bugs, AT TIME ZONE in both directions, daylight saving time, grouping by day, expression indexes, and how to change a 5-million-row column from timestamp to timestamptz without rewriting the table.

Postgres migrations that lock your table: what each ALTER TABLE takes, and how to ship it safely
Why a one-line ALTER TABLE can stall every query on a table, which lock each common migration takes on PostgreSQL 17, which ones rewrite the table, and the lock_timeout, NOT VALID and CONCURRENTLY patterns that keep production running.