Adding a new column to a database is a simple command with deep consequences. Before you run ALTER TABLE, you need a plan. Assess the schema. Analyze the workload. Know the indexes. Even a single column can trigger full table rewrites or lock the entire dataset, depending on the engine.
In PostgreSQL, adding a nullable column with no default is instant. Adding a column with a non-null default rewrites the table. In MySQL, the cost depends on storage engine and column order. With cloud databases, operations might look fast but run heavy in the background. Always test in staging with production-sized data.
Name columns with precision. Avoid types that invite implicit conversion errors. Use timestamps, booleans, and integers over generic text when possible. If the new column will be heavily queried, design indexes now, not later. Consider the impact on replication, backup size, and cache invalidation.