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

From David E. Wheeler
Subject Re: add label to enum syntax
Date
Msg-id 9CDD4B10-85A0-4A41-851E-572D5D91B0D6@kineticode.com
Whole thread Raw
In response to Re: add label to enum syntax  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Oct 27, 2010, at 7:18 AM, Andrew Dunstan wrote:

> The reason I chose LABEL was that it's consistent with what we have used elsewhere, both in the docs and the catalog.
ButI'm not strongly wedded to it. If it's a choice between ELEMENT and VALUE, I too prefer VALUE at it seems likelier
toconvey the sense of what we're doing to a naive user. 

FWIW, MySQL seems to call them values:

> An ENUM is a string object with a value chosen from a list of permitted values that are enumerated explicitly in the
columnspecification at table creation time. 


-- http://dev.mysql.com/doc/refman/5.0/en/enum.html

Best,

David

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: plan time of MASSIVE partitioning ...
Next
From: "David E. Wheeler"
Date:
Subject: Re: Bikeshedding on enum vocabulary