Adding a new column is one of the most common schema changes in any database. It sounds simple, but a bad approach can lock tables, spike CPU, or stall deploys. The right approach depends on the database engine, dataset size, and uptime requirements.
In PostgreSQL, ALTER TABLE ADD COLUMN is fast for empty columns with defaults of NULL. Adding a default value for every row is slower, as it rewrites the table. In MySQL, the impact depends on the storage engine and version; newer releases with ALGORITHM=INSTANT can add columns without rebuilding the entire table.
For production systems, timing matters. Run schema migrations during low-traffic windows, or use online schema change tools like pg_online_schema_change or gh-ost. Track the migration’s effect on query plans; even unused columns can change how indexes are read.