add label to enum syntax

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема add label to enum syntax
Дата
Msg-id 4CC5A6E9.5020905@dunslane.net
обсуждение исходный текст
Ответы Re: add label to enum syntax  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: add label to enum syntax  (Peter Eisentraut <peter_e@gmx.net>)
Re: add label to enum syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: add label to enum syntax  (Brendan Jurd <direvus@gmail.com>)
Re: add label to enum syntax  (Pavel Golub <pavel@microolap.com>)
Re: add label to enum syntax  (Pavel Golub <pavel@microolap.com>)
Список pgsql-hackers
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. LABEL is already a keyword, so 
it should be pretty minimally invasive to make this change, and if we 
want to do it now is the time.

Thoughts?

cheers

andrew


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

Предыдущее
От: Brendan Jurd
Дата:
Сообщение: Re: [BUGS] Segfault in 9.0 inlining SRF
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: add label to enum syntax