add label to enum syntax

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: add label to enum syntax
Date: 2010-10-25 15:48:57
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-hackers

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'

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.





Browse pgsql-hackers by date

  From Date Subject
Next Message Greg 2010-10-25 15:56:56 Composite Types and Function Parameters
Previous Message Brendan Jurd 2010-10-25 15:42:33 Re: Segfault in 9.0 inlining SRF