how to update the name of a table in postgresql code example Example: rename table postgres ALTER TABLE table_name RENAME TO new_table_name;