The database waited. Silent. Until you added a new column.
A new column is not just another piece of data. It changes structure, queries, and how your application behaves under load. When you alter a table in production, the operation can lock rows, block writes, or burn CPU. Choosing the right method determines if you ship in seconds or cause an outage.
In PostgreSQL, adding a new column with a default can trigger a full table rewrite. Avoid this when possible. Add the column without the default, then use UPDATE in batches. MySQL behaves differently; instant column operations are supported in specific engines and versions. Always check your production environment before running migrations.
Schema migration tools help. Use transactional DDL if supported. Wrap changes in verified migrations, keep them in version control, and ensure backward compatibility between deploy steps. If your application layer expects the new column instantly, deploy the schema first, then roll out code changes that use it.