Adding a new column sounds simple, but in a live system it carries risk. It can lock tables, block writes, and stall queries. The wrong deployment can take your service down. The right approach keeps your data intact, your uptime steady, and your users unaffected.
A new column in SQL alters the structure of a table. In PostgreSQL, ALTER TABLE ... ADD COLUMN defines it. In MySQL, the syntax is similar, but the execution path can differ. The engine may require a table rewrite, which can impact performance. Even on modern clustered databases, a schema change can ripple across replicas and caches.
Plan before you create a new column. Audit the table size and index usage. Decide if the column should allow NULLs, have a default value, or be generated from existing data. Use a deploy strategy that isolates the schema change from code changes. Deploy the column first, write data to it in the background, and then update application logic. This decouples DDL operations from production traffic spikes.