Adding a new column is more than typing ALTER TABLE. It changes schema, indexes, constraints, and sometimes the logic across your entire system. Done in the wrong order, it locks rows, slows queries, or shuts down production workflows.
Start with a plan. Audit data types. Pick the smallest type that fits the data to reduce storage and improve cache efficiency. Define whether NULL is allowed. If the column will be part of a filter or join, think about indexing before you deploy.
Use transactional DDL where possible. In PostgreSQL, most ALTER TABLE ADD COLUMN operations are fast, but adding NOT NULL without a default can force a full table scan. If you have billions of rows, add the column nullable first, backfill in batches, then apply constraints.
For MySQL, check if your engine supports instant column addition. Otherwise, expect a table rebuild, and plan maintenance windows or use online schema change tools like gh-ost or pt-online-schema-change.