Adding a new column is more than a schema change. It decides how data will live, move, and scale. In SQL, the syntax is simple:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
The command is easy. The impact is not. Every new column alters how queries run, how indexes work, and how storage grows. In PostgreSQL, adding a column with a constant DEFAULT can force a full table rewrite. On massive datasets, that can lock writes and spike I/O. In MySQL and MariaDB, older storage engines lock the table by default, but newer versions and online DDL features can make the operation non-blocking.
Design the new column with intention. Choose a data type that balances precision with size. Avoid nullable columns unless truly necessary; indexes and joins often perform better without them. If the column will be part of a key or frequently filtered, create the appropriate index at the same time, but avoid over-indexing.