Re: WIP: extensible enums

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: jd(at)commandprompt(dot)com
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>, Greg Stark <gsstark(at)mit(dot)edu>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WIP: extensible enums
Date: 2010-11-13 02:18:20
Message-ID: 201011130218.oAD2IKt22373@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joshua D. Drake wrote:
> On Fri, 2010-11-12 at 14:20 -0500, Tom Lane wrote:
> > Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> > > On Fri, Nov 12, 2010 at 1:55 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > >> Well, you can rename an item today if you don't mind doing a direct
> > >> UPDATE on pg_enum. I think that's probably sufficient if the demand
> > >> only amounts to one or two requests a year. I'd say leave it off the
> > >> TODO list till we see if there's more demand than that.
> >
> > > I'd say put it on and mark it with an [E]. We could use some more
> > > [E]asy items for that list.
> >
> > We don't need to add marginally-useful features just because they're
> > easy. If it doesn't have a real use-case, the incremental maintenance
> > cost of more code is a good reason to reject it.
>
> Perhaps we should remove the ability to rename tables and databases too.
> It would certainly lighten the code path.

OK, got it. Added incomplete TODO item:

Allow renaming and deleting enumerated values from an existing
enumerated data type

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2010-11-13 02:56:01 Re: WIP: extensible enums
Previous Message Andrew Dunstan 2010-11-13 01:29:31 Re: Refactoring the Type System