Adding a new column should be simple, but it can turn into production downtime, broken queries, or silent data loss if handled without care. Schema changes happen under load. Tables may have millions of rows. Locks can block your entire application.
The safest way to add a new column is to plan the schema change in small, controlled steps. Confirm the column name, type, nullability, and default values before altering the table. In many systems, adding a new nullable column with no default is fast because it only updates metadata. Adding a column with a default can rewrite the table and cause long locks.
For PostgreSQL, ALTER TABLE ... ADD COLUMN with a constant default rewrites the whole table in older versions. In MySQL, adding a column to large InnoDB tables can block writes. To avoid downtime, use online schema changes or migration tools like pt-online-schema-change or gh-ost.