how to alter an enum type

Поиск
Список
Период
Сортировка
От Henrique Pantarotto
Тема how to alter an enum type
Дата
Msg-id 20071224064439.AF91.HENPA@terra.com.br
обсуждение исходный текст
Ответы Re: how to alter an enum type  (Richard Broersma Jr <rabroersma@yahoo.com>)
Re: how to alter an enum type  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
[TLM] Re: how to alter an enum type  (Richard Broersma Jr <rabroersma@yahoo.com>)
Список pgsql-general
Hi,

I was wondering how can I alter an ENUM type?  I have created a table
like this:

create type possible_answers as enum('yes', 'no');
create table questions ( question text, answers possible_answers);
insert into questions values ('Do you like me?', 'yes');

So my question is... How can I change "possible_answers" to enum('yes',
'no', 'maybe')?

I tried searching the documentation and mailing list, and I couldn't
figure this one out.


Thanks!




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

Предыдущее
От: Richard Broersma Jr
Дата:
Сообщение: Re: possible psql \d bug in 8.3 beta2
Следующее
От: "Abraham, Danny"
Дата:
Сообщение: pg_ctl start fails on Windows