Re: add label to enum syntax

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: add label to enum syntax
Дата
Msg-id EEEB76B2-1992-4297-8192-4219B83044C3@kineticode.com
обсуждение исходный текст
Ответ на Re: add label to enum syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: add label to enum syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Oct 25, 2010, at 10:08 AM, Tom Lane wrote:

> 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?

From the fine manual:

> The second form of CREATE TYPE creates an enumerated (enum) type, as described in Section 8.7. Enum types take a list
ofone or more quoted labels, each of which must be less than NAMEDATALEN bytes long (64 in a standard PostgreSQL
build).

So the docs have called them "labels" for quite some time.

David

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: Range Types, discrete and/or continuous
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: ask for review of MERGE