A new column can store fresh metrics, flags, or indexes for features rolling out in production. In relational databases like PostgreSQL, MySQL, or MariaDB, ALTER TABLE ... ADD COLUMN is the standard way to add it. The syntax is simple, but execution is not. You need to plan for null defaults, data backfills, triggers, and constraints.
When adding a new column in large tables, operations can lock writes. Use online schema change tools like gh-ost or pt-online-schema-change for zero-downtime migrations. In PostgreSQL, ALTER TABLE ADD COLUMN itself is fast if no default is supplied, but backfilling a default will rewrite the table and must be staged.
Before you add a new column, check indexing strategy. If the new column will be queried often, create indexes after migration, not during, to avoid extended locks. When renaming or dropping old columns in the same migration, split them into separate deploys to minimize risk.