| От | Tom Lane |
|---|---|
| Тема | Re: add label to enum syntax |
| Дата | |
| Msg-id | 16518.1288026518@sss.pgh.pa.us обсуждение |
| Ответ на | add label to enum syntax (Andrew Dunstan <andrew@dunslane.net>) |
| Ответы |
Re: add label to enum syntax
|
| Список | pgsql-hackers |
Andrew Dunstan <andrew@dunslane.net> writes:
> It occurred to me in the dead of the night that instead of:
> ALTER TYPE enumtype ADD 'newlabel'
> it might be better to have:
> ALTER TYPE enumtype ADD LABEL 'newlabel'
> That way if we later wanted to support some other sort of ADD operation
> on types we would be able to more easily.
I can see the point of that, but I don't find LABEL to be a particularly
great name for the elements of an enum type, and so I'm not in favor of
institutionalizing that name in the syntax. How about ADD VALUE?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера