Re: extensible enum types - Mailing list pgsql-hackers

From Robert Haas
Subject Re: extensible enum types
Date
Msg-id AANLkTilM3cEGxjGpunambSEuzVHeADH9vsSNY_BeChd-@mail.gmail.com
Whole thread Raw
In response to Re: extensible enum types  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: extensible enum types  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Fri, Jun 18, 2010 at 12:59 PM, Andrew Dunstan <andrew@dunslane.net> wrote:
> You are just bumping up the storage cost. Part of the attraction of enums is
> their efficiency.

What's efficient about them?  Aren't we using 4 bytes to store a value
that will nearly always fit in 2, if not 1?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: extensible enum types
Next
From: "David E. Wheeler"
Date:
Subject: Re: hstore ==> and deprecate =>