Re: WIP: extensible enums - Mailing list pgsql-hackers

From Greg Stark
Subject Re: WIP: extensible enums
Date
Msg-id AANLkTinSYJ=w1WZ+vWRnqTGZ00Q8wdUPYAp6n=kZuiGq@mail.gmail.com
Whole thread Raw
In response to Re: WIP: extensible enums  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: WIP: extensible enums
List pgsql-hackers
On Sat, Oct 23, 2010 at 10:11 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> I dunno if floats have completely
> consistent representations on all the platforms we support, but with
> integers it should be quite easy to predict the exact point when
> you're going to run out of space and what the contents of pg_enum
> should be just before and just after that point.

There's nothing magic about the integral types here. If you use a
string then you could always split by making the string longer. It
would get weird after you get to 256 (you can still handle it but
there would be weird special case code) but an array of integers would
be just as flexible and wouldn't have the same problem.

-- 
greg


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: ask for review of MERGE
Next
From: Martijn van Oosterhout
Date:
Subject: Re: ask for review of MERGE