Re: extensible enum types

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: extensible enum types
Дата
Msg-id AANLkTikdrGIJ7wCy9qS7r_9RA0a7QTMJR3TSZ-BzPlme@mail.gmail.com
обсуждение исходный текст
Ответ на extensible enum types  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: extensible enum types  (Andrew Dunstan <andrew@dunslane.net>)
Re: extensible enum types  ("David E. Wheeler" <david@kineticode.com>)
Список pgsql-hackers
On Fri, Jun 18, 2010 at 11:50 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
> Then set the
> first value at  8 * p, then next at 9* p and so on. This is designed to
> allow more space to add labels at the beginning and end of the list, where
> this is more likely. Adding a label would be a matter of finding the labels
> adjacent to the position where we want to add the new label, and placing it
> half way between them, possibly with special rules for the list ends. If we
> want to add the label between two labels having values n and n+1 the
> addition would fail.

I like the idea of being able to modify enums on the fly, but I'm
skeptical of an implementation that won't always work.  Maybe it's
still better than what we have now, but it seems grotty.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: extensible enum types
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: extensible enum types