enumeration type? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject enumeration type?
Date
Msg-id 005601c332b6$68358340$6401a8c0@DUNSLANE
Whole thread Raw
List pgsql-hackers
This occurred to me yesterday as I was designing a little Db.

Has anyone thought about support for a simple enumeration type creation
mechanism? I know I could do it with CREATE TYPE and input/output functions,
but that does seem like a lot of work for a smallish thing.

As it is, I settled on a char type with some constraint checking, but
couldn't help thinking how nice a simple enumeration would have been.

andrew



pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: Pre-allocation of shared memory ...
Next
From: Tom Lane
Date:
Subject: Re: Pre-allocation of shared memory ...