Adding a new column should be fast, predictable, and safe. In SQL, ALTER TABLE is the command to define it. But in production systems, every schema change carries risk. A new column can block writes, lock rows, or trigger long-running migrations. If the table is large, the wrong approach can cause downtime.
The best practice is to plan the new column addition with care. Choose the right data type to avoid later conversions. Decide if it should allow NULL values or have a default. Adding a non-nullable column with no default will fail if rows already exist. For massive datasets, use an online schema migration tool to create the new column without blocking queries.
In Postgres, a new nullable column without a default is fast—it updates only the metadata. In MySQL, the behavior depends on the storage engine and version. Some changes require rebuilding the table. Always check the database documentation before running the operation.