pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Katarn <katarn@amnet.co.cr>
To: pgsql-sql@postgresql.org
Subject: Unique field key or several fks ?
Date: Sun, 11 Jan 2004 23:18:36 -0600
Message-ID: <40022E2C.6000701@amnet.co.cr> (raw)

Hi,

I would like to know opinions about which approach is better:

Having a table with a field that works as a unique key, or having 
several fks that work as a combined key ( all the fks fields )?

Thanks in advance,

K.




Message-ID: <40022E2C.6000701@amnet.co.cr>
Permalink:  ../40022E2C.6000701@amnet.co.cr/
Also on:    postgresql.org/message-id/40022E2C.6000701@amnet.co.cr

 · 

reply

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: katarn@amnet.co.cr
  Subject: Re: Unique field key or several fks ?
  In-Reply-To: <40022E2C.6000701@amnet.co.cr>

* 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