Adding a new column is simple in theory. In production, it is a high-stakes change. Schema updates touch live data, affect performance, and can break code paths in ways that surface days later. Understanding how to add a new column without downtime matters.
The basic step is an ALTER TABLE statement. On small tables, it is instant. On large ones, it can lock writes for minutes or hours. That lock can stall critical systems. Modern databases offer online schema changes or background migrations to avoid this.
For PostgreSQL, adding a nullable column without a default is fast, because it only changes metadata. Adding a default value rewrites the table, which can block. In MySQL, ALGORITHM=INPLACE or ALGORITHM=INSTANT options reduce disruption, but only for certain column types and constraints.