Adding a new column in a live system is not just a trivial ALTER TABLE. It is a decision with consequences for migrations, performance, and application code. In high‑traffic environments, the wrong approach can cascade into downtime.
The safest workflow starts with disciplined version control for database changes. Migrations should be explicit, tracked, and reversible. For most relational databases, ALTER TABLE ... ADD COLUMN is safe if the column is nullable or has a default value that does not force a full table rewrite. Avoid adding non‑nullable columns without defaults in production without careful planning.
When adding a new column to PostgreSQL, use ADD COLUMN ... DEFAULT ... combined with NULL where possible, then backfill data in controlled batches. In MySQL, be aware that ALTER TABLE may copy the entire table depending on the storage engine version. For large datasets, consider online schema change tools such as pt-online-schema-change or gh-ost.