Modifying ENUM Type

Поиск
Список
Период
Сортировка
От APseudoUtopia
Тема Modifying ENUM Type
Дата
Msg-id 27ade5280905300055r20bbf1daybed6f22df2cc7f17@mail.gmail.com
обсуждение исходный текст
Ответы Re: Modifying ENUM Type  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-general
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?

Thanks.

В списке pgsql-general по дате отправления:

Предыдущее
От: Scott Bailey
Дата:
Сообщение: Re: Switching databases over JDBC/ODBC
Следующее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Re: Switching databases over JDBC/ODBC