Adding a new column sounds simple, but in production systems it can be dangerous. Schema changes can lock tables, block queries, and cause downtime. Doing it right means thinking about concurrency, replication, indexes, and how your application code will handle the change.
First, decide the purpose of the new column. Define its type, default value, and whether it allows NULLs. This matters because each choice has different performance and storage impacts. For large tables, avoid defaults that rewrite every row. Use NULL or computed values when you can.
When working with relational databases like PostgreSQL or MySQL, adding a column with ALTER TABLE can be instant or slow depending on the engine and version. Some engines run metadata-only changes for nullable columns without defaults. Others rewrite the entire table. Check your documentation before running commands in production.