A new column sounds simple. It is not. Schema changes can block queries, lock tables, and freeze entire services. The way you add a column can decide if your system stays up or goes dark.
First, know the impact area. Adding a new column in SQL databases like Postgres, MySQL, or MariaDB can trigger a table rewrite. In large datasets, that rewrite can take minutes or hours. Every second under lock can stall transactions.
For Postgres, adding a column with a default value rewrites the table. Avoid defaults at creation when uptime matters. Create the column as NULL, then backfill in controlled batches. Once filled, alter the column to set the default and constraints. This pattern avoids long blocks.
In MySQL, the cost depends on storage engine and version. InnoDB on modern versions can perform some column additions instantly, but only for nullable columns without defaults. Check the ALGORITHM and LOCK clauses to enforce non-blocking behavior.