Primary key question

From: Richard Rowell <rrowell(at)spamfree(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Primary key question
Date: 2000-07-03 08:09:43
Message-ID: 3bi0ms00iak74c6jm26117unsskokmp0b4@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm creating a database with 20 tables or so. I have come to the
table that will likely tie many of these tables together, that is
every single field in this table will be a foriegn key. My question
is, rather then include all of the fields into the primary key of this
table, and therefore include all of these fields into any table that
will reference this one, would it be politically correct to just give
each entry an integer as a primary key and scan for dupes in a
trigger? It sure seems like it would cut down on the complexity of
the whole thing...

Thanx in advance!

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joseph 2000-07-03 10:37:29 ODBC and Connection staying open
Previous Message jprem 2000-07-03 06:56:51 help -- cursor inside a function