Re: changeing type of column - Mailing list pgsql-general

From Devrim GUNDUZ
Subject Re: changeing type of column
Date
Msg-id Pine.LNX.4.44.0204022205560.9089-100000@oper.metu.edu.tr
Whole thread Raw
In response to changeing type of column  ("Yuri A. Kabaenkov" <sec@artofit.com>)
List pgsql-general
Hi Yuri,

On Tue, 2 Apr 2002, Yuri A. Kabaenkov wrote:

> I've know that there is no function to change type of column in postgresql table.
> But i have a table with serial field (sequence) and many other field.
> And i need to change one field from int4 to varchar.
>
> What is the best way to do it ?

Just dump the database, edit the dump file, change the table definitions
in the dump file and reload the database...

Best regards,

--

Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr
devrimg@tr.net

Web : http://devrim.oper.metu.edu.tr
------------------------------------------------------------------



pgsql-general by date:

Previous
From: Petru Paler
Date:
Subject: Inheritance referential integrity problem
Next
From: Stephan Szabo
Date:
Subject: Re: Why are selects so slow on large tables, even when