Re: how to alter an enum type

From: Henrique Pantarotto <henpa(at)terra(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: how to alter an enum type
Date: 2007-12-24 18:10:45
Message-ID: 20071224161032.AF9E.HENPA@terra.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Richard,

I actually want to change the enum values after I have created and
associated it to a table colum.

Is it possible?

Thanks.

On Mon, 24 Dec 2007 09:50:09 -0800 (PST)
Richard Broersma Jr <rabroersma(at)yahoo(dot)com> wrote:

> --- On Mon, 12/24/07, Henrique Pantarotto <henpa(at)terra(dot)com(dot)br> wrote:
>
> > I tried searching the documentation and mailing list, and I
> > couldn't
> > figure this one out.
>
> ALTER TABLE questions
> ALTER COLUMN answers TYPE possible_answers;
>
> Actually your type is fine. you only need to alter the column on your table to use your new type.
>
> Regards,
> Richard Broersma Jr.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend

--
Henrique Pantarotto <henpa(at)terra(dot)com(dot)br>
http://henrique.pantarotto.com.br/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2007-12-24 18:27:55 Re: how to alter an enum type
Previous Message Steve Atkins 2007-12-24 18:03:53 Re: Postgres from PHP in Leopard