When you work with relational databases, a new column is not just a piece of schema. It is a decision. It defines the shape of your data and the limits of what you can query. Whether in PostgreSQL, MySQL, or any other SQL engine, adding a column sets the rules for storage, indexing, and retrieval.
To create a new column, you use ALTER TABLE. This is the simplest way to evolve a table without rebuilding it from scratch:
ALTER TABLE orders
ADD COLUMN status VARCHAR(20);
This command extends the table. Now every row has the potential to carry this new attribute. The choice of name, type, and constraints will determine data quality for years.
Performance depends on how you design that new column. Adding indexes speeds up searches but increases write costs. Choosing the smallest viable data type saves space and memory. Setting defaults ensures old rows align with the new schema.