Creating a new column is more than adding space. It’s a structural decision. In relational databases like PostgreSQL, MySQL, or SQLite, every column carries a type, constraints, and a purpose that affects performance, storage, and the integrity of every query you run. The wrong type creates expensive conversions. A missing constraint opens the door to bad data.
Start with precision. Identify the exact name and data type. Use ALTER TABLE with intention:
ALTER TABLE users ADD COLUMN last_login TIMESTAMP;
Run only after you’ve considered impacts on indexes, foreign keys, and application code. For high-volume tables, adding a new column can lock writes or rebuild storage blocks, so plan for maintenance windows or online DDL strategies.