Adding a new column to a table seems simple, but done wrong, it can lock writes, stall reads, and turn a live application into a waiting room. Done right, it strengthens your schema without downtime or data loss. The difference is in the method.
First, define what the new column needs: data type, nullability, default values, and indexing requirements. Avoid guessing. Each property impacts storage, performance, and how the column interacts with queries.
Second, plan the migration. On smaller tables, an ALTER TABLE ADD COLUMN may be instant. On large production datasets, that same operation can trigger a full table rewrite. Use online schema change tools like pt-online-schema-change or gh-ost for MySQL, or avoid index creation during the initial column add. For PostgreSQL, remember that adding a nullable column with no default is metadata-only and fast; adding a default with NOT NULL rewrites the table unless you use newer ALTER TABLE ... ADD COLUMN ... DEFAULT ... improvements.