Adding a new column can look simple. In production, it can be dangerous. The wrong approach locks tables, blocks writes, and takes down services. The right approach adds capacity without disruption.
A New Column changes the shape of the data. It impacts indexes, queries, storage, and caching behavior. Even a nullable column with no default can cause a rewrite on some databases. For large datasets, this means minutes or hours of blocking.
Plan the migration. In PostgreSQL, ALTER TABLE ADD COLUMN is lightweight for nullable columns without defaults. For MySQL, adding a column to an InnoDB table can trigger a table copy unless you use ALGORITHM=INSTANT where supported. Always confirm engine version and features before deploying.
For zero-downtime changes, use an online schema change tool. pt-online-schema-change and gh-ost stream changes without locking. Keep transactions small. Test the migration on a staging environment with production-scale data.