How to change column type in PostgreSQL from text to array and cast only non-null values?
I have a table in PostgreSQL: | id | country| type | | 1 | USA | FOO | | 2 | null | BAR | I want to change the column type for the country column from text to…