Re: Modifying ENUM Type - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Modifying ENUM Type
Date
Msg-id b42b73150905300536u4d61dc91pa40b9ed1da7a96f0@mail.gmail.com
Whole thread Raw
In response to Modifying ENUM Type  (APseudoUtopia <apseudoutopia@gmail.com>)
List pgsql-general
On Sat, May 30, 2009 at 3:55 AM, APseudoUtopia <apseudoutopia@gmail.com> wrote:
> Hey,
>
> I created an ENUM type. However, I accidentally typoed in one of the
> enum values. It is "apps" and it should be "app". What's the best way
> to modify this without dropping the type? I have many tables which
> have columns that depend on the type, and I'm trying to avoid having
> to recreate all those tables again (which would be the case if I have
> to drop the type).
>
> Can I just edit the pg_enum table manually? Will this mess anything up?

yes. just be careful.

merlin

pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: How can I look at a recursive table dependency tree?
Next
From: Tom Lane
Date:
Subject: Re: How can I look at a recursive table dependency tree?