Re: problem in modifing column datatype of a table - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: problem in modifing column datatype of a table
Date
Msg-id 200411241622.43087.peter_e@gmx.net
Whole thread Raw
In response to problem in modifing column datatype of a table  ("Durga Prasad Mohapatra" <durgamohapatra@fastmail.fm>)
List pgsql-general
Durga Prasad Mohapatra wrote:
>   I am newbie in postgresql.I want to modify column datatype of a
> table how can i do it.
> for example there is a column with datatype varchar, i want to change
> it to text.
> How can i.

Before 8.0: Recreate the table and copy the data.
After 8.0: ALTER TABLE

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Moving/Using Postgres Binaries on multiple machines
Next
From: Eric D Nielsen
Date:
Subject: PostGreSQL upgrade failed (Debian Packages), need advice...