Re: BUG #15286: BEFORE or AFTER not working while adding values for existing enums

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: BUG #15286: BEFORE or AFTER not working while adding values for existing enums
Дата
Msg-id 878t66jxr3.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на BUG #15286: BEFORE or AFTER not working while adding values forexisting enums  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15286: BEFORE or AFTER not working while adding values forexisting enums  (Nivruth Nandigam <nivruth_n@yahoo.com>)
Список pgsql-bugs
>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> writes:

 PG> I'm trying to modify an existing enum and use the BEFORE or AFTER
 PG> feature to add a value in between the existing values but I'm
 PG> noticing that the values are only being added to the enum in the
 PG> end.

How are you looking at the order of values?

I get this:

create type e1 as enum ('foo','bar','baz');
alter type e1 add value 'quux' after 'foo';

postgres=# select * from unnest(enum_range(null::e1)) order by 1;
 unnest 
--------
 foo
 quux
 bar
 baz
(4 rows)

which is the expected order.

-- 
Andrew (irc:RhodiumToad)


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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15286: BEFORE or AFTER not working while adding values forexisting enums
Следующее
От: Nivruth Nandigam
Дата:
Сообщение: Re: BUG #15286: BEFORE or AFTER not working while adding values forexisting enums