logoalt Hacker News

luhn05/15/20251 replyview on HN

The improvements to migrations have been the biggest boon for running even modestly-sized Postgres DBs. It wasn't that long ago that you couldn't add a column with a default value without rewriting the whole table, or adding NOT NULL without an exclusive lock while the whole table was scanned. That becomes unfeasible pretty quickly.


Replies

nasretdinov05/15/2025

Does adding a default value into a column finally work without locking up an entire table now at least?

show 2 replies