Re: Change column data type - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Change column data type
Date
Msg-id 200309050915.18531.dev@archonet.com
Whole thread Raw
In response to Change column data type  ("Senthil Kumar S" <ssakkaravel@ivesia.com>)
List pgsql-sql
On Tuesday 02 September 2003 10:50, Senthil Kumar S wrote:
> Dear Friends,
>
> Using Postgres 7.3.4 over the linux server 7.3.
>
> Is it possible to alter/change the data type of a existing table's column,
> with out dropping and recreating a column of same name.
>
> Thanks for ur knowledge sharing.

If you mean changing a varchar to a date or int4 to text, then no. If you want 
to change the size of a varchar field, people seem to have done that in the 
past (check the archives for details).

Otherwise, you'll have to wrap the drop/recreate in a transaction along with 
whatever supporting updates you need.
--  Richard Huxton Archonet Ltd


pgsql-sql by date:

Previous
From: "Yaroslav Ulyanov"
Date:
Subject: Fw: Transactions ID
Next
From: Richard Huxton
Date:
Subject: Re: Fw: Transactions ID