Adding a new column is simple. Doing it right is not. A database schema is a living thing. Each new column changes how data moves, how queries perform, and how systems behave under load. Whether you run MySQL, PostgreSQL, or a cloud-native service, the cost of a schema change depends on size, indexes, and migration strategy.
First, decide the column type and nullability. Pick the tightest type that fits the data. A TEXT where a VARCHAR(255) works wastes memory and slows scans. Avoid NULL unless you have a strong case; nullable columns add complexity to queries and indexes.
Second, plan the deployment. Use ADD COLUMN in a migration script, but on large tables, avoid locking writes for minutes or hours. For PostgreSQL, adding a nullable column without a default is fast. For MySQL, use tools like pt-online-schema-change or native ALTER TABLE … ALGORITHM=INPLACE when possible.