add a value to an ENUM type

Поиск
Список
Период
Сортировка
От Edoardo Panfili
Тема add a value to an ENUM type
Дата
Msg-id 4A9FF439.8050109@aspix.it
обсуждение исходный текст
Ответы Re: add a value to an ENUM type  (APseudoUtopia <apseudoutopia@gmail.com>)
Список pgsql-general
I have an enum type
CREATE TYPE shapeName AS ENUM('rectangle','circle');

now I need another value: 'square'

the pg_type.oid of 'shapename is 16458

It works, but Is it safe to use this?
insert into pg_enum (enumtypid,enumlabel) VALUES('16458','square');

thank you
Edoardo

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

Предыдущее
От: Willy-Bas Loos
Дата:
Сообщение: Re: auto-increment in a view
Следующее
От: "Gauthier, Dave"
Дата:
Сообщение: column level, uid based authorization to update columns