← all posts
Tagged
postgres
2 posts
Changing a Column on a Big Postgres Table Without a Long Table-Rewrite Lock
An illustrative integer-to-bigint migration, split into expand, sync, backfill, validate, switch and contract—with explicit lock and recovery limits.
Designing a Time-Series Table That Survives Its Own Growth
A table of timestamped readings works fine until it doesn't. Here is how I split it by month, kept a small hourly summary, and what each choice cost me.