column name change using alter in postgresql code example
Example 1: how to update column name in psql
ALTER TABLE table_name
RENAME COLUMN old_name TO new_name;
Example 2: rename column postgres
ALTER TABLE distributors RENAME COLUMN address TO city;