Adding a new column in a production database is not trivial. Schema changes risk downtime, locks, and unexpected load spikes. The approach depends on the database engine, the table size, and the read/write pattern. You need to choose the right method or pay for it in broken deploys.
In PostgreSQL, ALTER TABLE ADD COLUMN is fast for most cases when adding a nullable column. Adding a non-nullable column with a default can rewrite the entire table, making the migration slow. The safer path is to add it as nullable, backfill in batches, then set constraints.
In MySQL, ALTER TABLE often copies the whole table. For large datasets, use tools like pt-online-schema-change or native online DDL options in newer versions. Even with “online” modes, watch for metadata locks that block writes.