A schema change can feel small on paper, but in production it’s a live operation. In most systems, adding a new column means adjusting storage, updating indexes, and keeping reads and writes consistent. Whether you work with PostgreSQL, MySQL, or distributed data stores, the right approach depends on table size, query load, and downtime tolerance.
In PostgreSQL, ALTER TABLE ... ADD COLUMN is fast for nullable or default-null fields but locks metadata during execution. Adding a column with a non-null default rewrites the table, which can stall traffic. Use a nullable column first, then backfill in controlled batches before adding constraints.
In MySQL, adding a new column may trigger a full table rebuild unless you use features like ALGORITHM=INSTANT for certain operations. Test this in staging to confirm your engine and version support it. For large datasets, consider adding the column without defaults, update in smaller chunks, and apply indexes last.