When you add a new column in SQL, you are changing the shape of truth in your system. The schema shifts. Queries bend. Indexes may need to adapt. Done right, it opens possibilities. Done wrong, it can break critical paths.
A new column in PostgreSQL starts simple:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
In MySQL or MariaDB, the syntax is almost identical. The implications, however, depend on data size, existing constraints, and how your application code handles the change. Non-null constraints might require backfilling data. Default values can mask nulls but introduce silent assumptions.
Performance matters. On large tables, adding a column without careful planning can lock writes or trigger full table rewrites. Use ADD COLUMN ... DEFAULT NULL when you want speed, then populate in smaller batches. If you need an index, create it after the data load to avoid repetitive writes.