Re: advice on setting up schema sought

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: operationsengineer1(at)yahoo(dot)com
Cc: danmcb <danielmcbrearty(at)gmail(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: advice on setting up schema sought
Date: 2006-04-11 16:42:45
Message-ID: 20060411164245.GA1599@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, Apr 10, 2006 at 22:30:47 -0700,
operationsengineer1(at)yahoo(dot)com wrote:
>
> Daniel, i'm not sure i totally understand your
> request. from what i could make of it, though, would
> this workd?
>
> t_text
> text_id (pkey)
> language_id (fkey)
> text
>
> t_language
> language_id (pkey)
> language
>
> the foreign key of the t_text table would reference
> the the pkey (primary key) of the t_language.

In the translation table, you need to make the primary key a composite of
text_id and language_id so that only one unique combination of the two is
allowed.

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Lan Barnes 2006-04-11 16:51:03 SELECT of a glob
Previous Message Chris Browne 2006-04-11 16:27:04 Re: PostgreSQL a slow DB?