Re: add label to enum syntax

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: add label to enum syntax
Date: 2010-10-25 15:57:45
Message-ID: AANLkTik3nF3Xg3cnV--LG58eVKXD8j8h_4LuE9dmzCjU@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2010/10/25 Andrew Dunstan <andrew(at)dunslane(dot)net>:
>
> 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'

+1

Regards

Pavel
>
>
> 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
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-10-25 16:03:40 Re: add label to enum syntax
Previous Message Greg 2010-10-25 15:56:56 Composite Types and Function Parameters