I want to cast a specific column in my PostgreSQL database from character_varying type to type date. phpPgAdmin gives me the following error:
ERROR:
You might need to convert it to text first:
alter table "foo" alter column "date" type date using ("date"::text::date);