The new column waited like an empty field, ready for data to flood in. You created the table months ago. Traffic scaled. Features shipped. Now the schema must adapt. Adding a new column is trivial in theory, but in production it can choke a service if done carelessly.
When you add a new column, the database rewrites or updates underlying structures. On small tables, the change is instant. On large ones, it can lock writes, slow queries, and cascade latency spikes through dependent systems. The method you choose determines whether uptime survives the migration.
Use ALTER TABLE ADD COLUMN with care. For PostgreSQL, adding a nullable column with no default is fast. But add a default, and the engine must rewrite every row. MySQL behaves differently. With InnoDB, certain schema changes are “instant,” others trigger a rebuild. Always check your version’s supported operations.
If the new column needs a default, set it in application code. Backfill the data in controlled batches. Avoid locking the full table during peak traffic. Measure the impact with slow query logs and connection stats.