Re: BUG #4188: Array field column (varchar[]) cannot be cast to type "text" - Mailing list pgsql-bugs

From Heikki Linnakangas
Subject Re: BUG #4188: Array field column (varchar[]) cannot be cast to type "text"
Date
Msg-id 4836BDDB.7000509@enterprisedb.com
Whole thread Raw
In response to BUG #4188: Array field column (varchar[]) cannot be cast to type "text"  ("Murali Doss" <murali.doss@mphasis.com>)
List pgsql-bugs
Murali Doss wrote:
> I have a array field column varchar[] data type and i need to change to text
> data type.but it throwing following error
>
> ALTER TABLE mytable ALTER mycolumn TYPE text;
>
> ERROR: column "mycolumn" cannot be cast to type "text"
> SQL state: 42804

This is not a bug. Use "ALTER TABLE mytable ALTER mycolumn TYPE text
USING ...".

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: "Murali Doss"
Date:
Subject: BUG #4188: Array field column (varchar[]) cannot be cast to type "text"
Next
From: Tom Lane
Date:
Subject: Re: BUG #4187: function to_tsvector not immutable