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

From Dean Rasheed
Subject Re: add label to enum syntax
Date
Msg-id AANLkTikWLJcKr8C8Po7_cYUzqZoB2LrG1Af3puok2bpb@mail.gmail.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 25 October 2010 21:31, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> LABEL is already an unreserved keyword, and I'm pretty sure that's all
>> we'll need.
>
> The only reason it's a keyword is the SECURITY LABEL patch that went
> in a month or so ago; which is syntax that might still be thought
> better of before it gets to a release.
>
> But I seem to be in the minority, so I'll shut up now.
>
>                        regards, tom lane
>

In mathematics (and I think also computer science), the term
conventionally used the refer to the things in an enumeration is
"element", so how about ADD ELEMENT?

The label is just one of the ways of identifying the element, and the
value is element's OID. The thing you're adding is an element, with
both a label and a value.

Regards,
Dean


> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>


pgsql-hackers by date:

Previous
From: kaigai@kaigai.gr.jp
Date:
Subject: Re: security hook on authorization
Next
From: Greg
Date:
Subject: Re: Composite Types and Function Parameters