The query plans shifted. Indexes broke. Data pipelines stopped mid-run.
Adding a new column is one of the most common schema changes in production systems. It is also one of the easiest to underestimate. Done poorly, it can trigger lock contention, replication lag, or inconsistent application behavior. Done well, it enables new features without disruption.
Plan before execution
Before creating the new column, confirm the exact data type, nullability, and default values. Setting a default on a large table can rewrite each row and lock the table. Use a lightweight migration if possible—add the column as nullable first, then backfill in batches, then apply constraints.
Consider database-specific behavior
On PostgreSQL, ALTER TABLE ADD COLUMN is fast if no default is supplied. On MySQL, older storage engines may rebuild the table. Cloud databases may have background schema change features, but they can still stress I/O. Always check how your engine implements the statement.