From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
---|---|
To: | "Heikki Linnakangas" <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Thom Brown" <thom(at)linux(dot)com>, "Joseph Adams" <joeyadams3(dot)14159(at)gmail(dot)com>, "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: WIP: extensible enums |
Date: | 2010-08-23 20:57:20 |
Message-ID: | 49618.203.166.48.226.1282597040.squirrel@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, August 23, 2010 3:20 pm, Heikki Linnakangas wrote:
> On 23/08/10 22:06, Tom Lane wrote:
>> Thom Brown<thom(at)linux(dot)com> writes:
>>> On 23 August 2010 19:25, Joseph Adams<joeyadams3(dot)14159(at)gmail(dot)com>
>>> wrote:
>>>> But what if you want to insert an OID at the end?
>>
>>> ALTER TYPE colors ADD 'orange';
>>
>> Alternatively, if people are dead set on symmetry, what we should do
>> to simplify is drop *this* syntax, and just have the BEFORE and AFTER
>> variants.
>
> Then you need to know the last existing value to add a new one to the
> end. Seems awkward.
>
I agree. This is a non-starter, I think. The most common case in my
experience is where the user doesn't care at all about the order, and just
wants to add a new label. We should make that as easy as possible,
especially since it's the most efficient.
cheers
andrew
From | Date | Subject | |
---|---|---|---|
Next Message | Eric Simon | 2010-08-23 21:13:41 | Problem Using PQcancel in a Synchronous Query |
Previous Message | Robert Haas | 2010-08-23 19:25:54 | Re: WIP: extensible enums |