When you create a new column in a database table, you alter the schema definition. This change updates the metadata and, depending on the database engine, may rewrite physical storage. In PostgreSQL, adding a nullable column with a default NULL is fast. Adding a column with a non-null default may rewrite the table, locking writes until complete. In MySQL, the impact varies based on storage engine and version—recent releases with ALGORITHM=INPLACE allow faster schema changes, but only under certain conditions.
Indexing the new column is not automatic. If the new column will appear in WHERE clauses or joins, add the appropriate index. But every additional index slows inserts and updates. Profile actual query plans before deciding.
Backfill strategies matter when populating the new column with existing data. For large datasets, run updates in batches to prevent table locks and replication lag. Use transactions sized to avoid log overflow. Monitor replication delay and disk usage throughout the process.