Adding a new column to a table is one of the most common schema changes in any system that evolves past its first release. It can unlock features, simplify queries, and improve performance when done with intent. Done wrong, it can bring down production.
Before creating a new column, define the exact purpose. Is it storing derived data for faster reads? A foreign key to enrich joins? Or a metadata field to reduce complexity in the application layer? Keep the scope tight and avoid speculative fields.
Choose the right data type. Using INT for identifiers, VARCHAR for free text, or BOOLEAN for flags seems simple, but precision matters. Match storage size and encoding to the expected workload. This keeps indexes small and queries fast.
Understand default values. Adding a new column with a non-null default will rewrite every row in the table, which can lock or block operations on large datasets. When dealing with millions of rows, consider adding the column as nullable first, then backfilling in batches.