Re: add label to enum syntax - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: add label to enum syntax
Date
Msg-id EEEB76B2-1992-4297-8192-4219B83044C3@kineticode.com
Whole thread Raw
In response to Re: add label to enum syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: add label to enum syntax
List 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 by date:

Previous
From: Jeff Davis
Date:
Subject: Re: Range Types, discrete and/or continuous
Next
From: "Kevin Grittner"
Date:
Subject: Re: ask for review of MERGE