Search Postgresql Archives

Re: Modifying ENUM Type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, May 30, 2009 at 3:55 AM, APseudoUtopia <apseudoutopia@xxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux