Adding a new column sounds simple, but in production it can break services, lock tables, or cause downtime. Whether you use PostgreSQL, MySQL, or a distributed SQL engine, the method matters. The wrong alter can trigger full table rewrites. The right one can roll out instantly with zero disruption.
In PostgreSQL, ALTER TABLE ... ADD COLUMN is fast for nullable columns with defaults set later. In MySQL, online DDL with ALGORITHM=INPLACE avoids blocking writes. For distributed databases, schema change APIs coordinate the update across nodes without service degradation. Always test the migration path in a staging environment with realistic data volumes before executing in production.
Plan for backward compatibility. When adding a new column to an active table, first deploy code that ignores the column. Then migrate the schema. Then deploy code that writes to it. Only after all services write successfully should you make it required. This avoids runtime errors and supports rolling deploys.