Adding a new column to a production database sounds simple. It is not. The wrong approach will lock tables. It can trigger outages. It can drag response times into the ground. Modern systems demand precision.
When you add a new column, you must account for schema changes, data backfills, and query performance. On large tables, an ALTER TABLE ADD COLUMN can be blocking. Even a lightweight column can lock writes until it completes. This is a risk you cannot ignore in a live environment.
Safe migrations start with knowing the database engine’s behavior. PostgreSQL handles nullable column additions without a table rewrite, but default values can cause a full table scan. MySQL can perform instant column additions in recent versions, but only for specific data types. For older versions, the operation rebuilds the whole table. You must verify version capabilities before deploying.