Adding a new column should be instant, but in real systems it can trigger a cascade of complexity. Schema changes block writes, trigger locks, and, in the worst cases, take production offline. The choice of method matters.
For small datasets, a simple ALTER TABLE ADD COLUMN works. On large tables, this command can take minutes or hours, depending on indexes, replication lag, and disk I/O. In distributed databases, a new column can require schema migrations across shards, coordination nodes, and application layers. In modern pipelines, even a single column addition must account for data validation, default values, null handling, and versioning in downstream consumers.
Zero-downtime migrations mean creating the new column without blocking other operations. This often involves online DDL tools, background copy processes, or building the change into versioned schemas that run alongside the old version until cutover. Feature flags can control rollout, allowing the application to write to both old and new columns for a time before redirecting fully.