enumeration type?

From: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
To: "PostgreSQL Hackers Mailing List" <pgsql-hackers(at)postgresql(dot)org>
Subject: enumeration type?
Date: 2003-06-14 20:49:10
Message-ID: 005601c332b6$68358340$6401a8c0@DUNSLANE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-06-14 21:16:56 Re: Pre-allocation of shared memory ...
Previous Message Andrew Dunstan 2003-06-14 20:38:31 Re: Pre-allocation of shared memory ...