The table hangs in memory, waiting. You need a new column, and you need it without breaking production.
Adding a new column sounds simple. In practice, it can bring downtime, lock tables, and stall queries. On a live system, schema changes impact performance. Every engineer knows this is where migrations get dangerous.
A new column in SQL alters the structure of your table. In PostgreSQL, you use ALTER TABLE my_table ADD COLUMN new_column data_type;. In MySQL, it’s ALTER TABLE my_table ADD new_column data_type;. The command runs fast on small datasets. On large ones, it can take minutes—or hours—depending on the data size, indexes, and storage engine.
Plan for the change. Check how your database handles concurrent writes during ALTER TABLE. Analyze slow query logs before and after. If your table is read-heavy, consider adding the column with a default of NULL first, then backfill values in smaller batches. This limits locking overhead.