The query returned 5,000 rows. You need one more field, and you need it without breaking the system.
Adding a new column sounds simple. In production, under load, with terabytes of data, it can be dangerous. Schema changes can lock tables, block writes, and slow queries. Every second matters when users are waiting.
The safest path to a new column starts with understanding your database engine. In PostgreSQL, adding a nullable column without a default is instant. Adding one with a default rewrites the table. MySQL behaves differently depending on storage engines and version. Know the cost before you run ALTER TABLE.
For large datasets, online schema migration tools are critical. Tools like pt-online-schema-change or gh-ost create a shadow table with the new column, copy data in batches, and swap it in place. This avoids downtime but adds operational complexity. You must test the migration process on a realistic staging environment.