rename table postgres
snippet in sql

rename table postgres

user9530

ALTER TABLE table_name
RENAME TO new_table_name;

psql filed name alter

user6881

ALTER TABLE table_name 
RENAME column_name TO new_column_name;