Adding a new column is one of the most common schema changes in SQL. It looks simple, but the real work is in making it safe, fast, and searchable. Whether you use PostgreSQL, MySQL, or a cloud-native database, the operation can impact performance if not planned well.
In PostgreSQL, ALTER TABLE ADD COLUMN is straightforward for small datasets, but on large tables it can lock writes. The default value and type you choose matter. Using NULL by default avoids a full-table rewrite. To backfill data, run batched updates instead of a single massive query.
In MySQL, adding a new column in older versions can be blocking, but newer releases with Instant DDL make it faster. Always check the database version and storage engine before executing the change in production.
For cloud databases, understand how replication and failover interact with schema changes. A new column must propagate cleanly across all replicas. If you deploy through migrations, ensure the application code can handle both the old and new schema during rollout.