Adding a new column is one of the most common schema changes, yet it hides sharp edges. A single ALTER TABLE can lock writes, spike CPU, or stretch migration windows into hours. On large datasets, careless changes amplify risk.
Before creating a new column, decide if it will be NULL, have a default value, or require constraints. Defaults in transactional systems can trigger full-table writes. Constraints can block inserts during migration. Run performance tests in staging with production-sized copies to catch these costs early.
Choose the right data type. Align it with your indexing strategy. Keep new columns out of hot paths until proven stable. For massive tables, consider rolling schema changes—create the new column without defaults, then backfill in controlled batches. Use tools that handle online schema changes, minimizing downtime and avoiding full locks.