I’m running the following query and it’s saying that it is not valid:
redmine=# ALTER TABLE changesets ALTER COLUMN committer TYPE character varying(100);
ERROR: syntax error at or near "TYPE" at character 47
Does anyone have any idea on the solution to this issue?
Postgres 7.4 does not support retyping columns. You have to create a new column, copy over any data, drop the old column and rename the new to have the old name.
If there is no data to copy, you can of course simply drop the old column and create the new column with the new type.