Re: Using varchar primary keys. - Mailing list pgsql-general

From Jasen Betts
Subject Re: Using varchar primary keys.
Date
Msg-id kjb7ld$na8$1@gonzo.reversiblemaps.ath.cx
Whole thread Raw
In response to Using varchar primary keys.  (Tim Uckun <timuckun@gmail.com>)
Responses Re: Using varchar primary keys.
List pgsql-general
On 2013-04-01, Tim Uckun <timuckun@gmail.com> wrote:
> --14dae93996072d9ff304d945bd3c
> Content-Type: text/plain; charset=UTF-8
>
>>
>>
>> Natural Keys have a purpose but when do they exist in the database?
>>
>>
> In my case it's the tags. Table tags has only two columns id and tag. Each
> one has a unique index.  I have many other similar lookup tables. For
> example things like order_status, item_type etc.
>

how about using an enum instead of this table?


--
⚂⚃ 100% natural

pgsql-general by date:

Previous
From: Tim Uckun
Date:
Subject: Re: Using varchar primary keys.
Next
From: Tim Uckun
Date:
Subject: Re: Using varchar primary keys.