In PostgreSQL, if I have to rename and change the column data type, I should run two separate queries to do so.
To rename:
ALTER TABLE <tablename> RENAME <oldcolumn> TO <newcolumn>
And to change the column type:
ALTER TABLE <tablename> ALTER COLUMN <columnname> <columntype>.
Although is there any way to do both of these works with a single query like the below MySQL query:
ALTER TABLE <tableName> CHANGE COLUMN <oldcolumnname> <newcolumnname> <newtype>