How to change the data type of a table column to enum?

Viewed 1755

I have a table "ENGINE" in a Postgres DB, in which I have to change the datatype of a column named loglevel from string to enum.

However, I am not able to understand instructions in the manual:

ALTER [ COLUMN ] column TYPE type [ USING expression ]
1 Answers
Related