Re: Changed a column type from "integer" to varchar

From: Greg Donald <destiney(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Changed a column type from "integer" to varchar
Date: 2004-09-14 20:53:07
Message-ID: ea9da26c040914135356f0b0ff@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 14 Sep 2004 13:33:32 -0700, Joshua D. Drake
<jd(at)commandprompt(dot)com> wrote:
> You can not currently change the data type with alter table.

Are there any plans to add this functionality?

What's the best workaround? Add a new column, copy data from old
column to new column, drop old column?

--
Greg Donald
http://destiney.com/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim 2004-09-14 21:01:48 different results inside transactions
Previous Message Alvaro Herrera 2004-09-14 20:45:53 Re: Changed a column type from "integer" to varchar