From: Jasen Betts <jasen@xnet.co.nz>
To: pgsql-sql@postgresql.org
Subject: Re: ENUM vs DOMAIN vs FKyed loookup table
Date: 15 Apr 2009 12:57:20 GMT
Message-ID: <gs4ljg$hkd$1@reversiblemaps.ath.cx> (raw)
References: <49DCDA27.4090901@megafon.hr>
<5d0f60990904121108y7f5dbb7aydf2105b68bceab12@mail.gmail.com>
On 2009-04-12, Dirk Jagdmann <jagdmann@gmail.com> wrote:
>> When you need to choose between enum types, domain types or lookup tables
>> with foreign keys, what do you usualy choose?
>
> When I have a column with valid values that I know when writing my
> tables and that will *never* change I use an enum. For example a human
> gender type (and remember that there are 4 values for human sex if you
> want to model it completely).
"lambda moo" has even more genders than that.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jasen@xnet.co.nz
Subject: Re: ENUM vs DOMAIN vs FKyed loookup table
In-Reply-To: <gs4ljg$hkd$1@reversiblemaps.ath.cx>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox