Adding a new column is one of the most common schema changes in modern systems. It sounds simple, but at scale it can break deployments, degrade performance, or lock rows for longer than expected. In distributed databases, a poorly planned schema migration can cause replication lag and unexpected downtime.
When adding a new column in SQL, the details matter. Choosing the right data type affects storage size, index performance, and query speed. A NULL-able column will behave differently from one with a default value. Backfilling large datasets can spike CPU and IO, so running in batches or using online schema change tools can reduce risk.
For PostgreSQL, ALTER TABLE ADD COLUMN is fast for metadata-only changes with no default and null allowed. For MySQL, ALGORITHM=INPLACE can avoid table copy operations in some versions, but not all. In cloud-managed databases, vendor-specific migration strategies are often required to avoid downtime.