The query returned fast, but the data was wrong. A missing field. One fix: add a new column.
A new column changes the shape of your database. It adds capacity for data your system could not store before. In relational databases like PostgreSQL or MySQL, adding a column alters the schema. This affects queries, indexes, migrations, and the code that depends on them.
When you add a new column in SQL, you use ALTER TABLE. You choose the column name, data type, and constraints. Choices here affect performance and data integrity for years. Columns with NOT NULL and default values can prevent silent data corruption. Columns with the wrong data type can force expensive casts in every query.
In production, a new column can trigger table locks and block writes. On large datasets, this may cause downtime if not planned well. Some databases support adding a nullable column without locking, making schema changes safer. If you need the column to be populated immediately, consider adding it as nullable first, then backfilling in chunks, followed by setting constraints.