Postgres
Postgres ALTER COLUMN TYPE: When the Rewrite Costs and How to Avoid It
Changing a column type in Postgres often forces a full table rewrite while holding an ACCESS EXCLUSIVE lock. Some type changes avoid the rewrite entirely, others can be staged across multiple migrations to keep production traffic flowing.