From: Josh Berkus <josh@agliodbs.com>
To: Chris Ruprecht <chrup999@yahoo.com>
To: pgsql <pgsql-sql@postgresql.org>
Subject: Re: More Database Design Stuff
Date: Thu, 02 Aug 2001 15:36:03 -0700
Message-ID: <web-95984@davinci.ethosmedia.com> (raw)
In-Reply-To: <009301c11b96$0b744c60$5dd26383@corp.compucom.com>
Chris,
> I don't really care if people say it's bad to do this kind of thing,
> I like
> to tell them that I will do what works for me, and there is usually
> not much
> to argue about that point ;).
In most cases, simple surrogate keys (i.e. cust_id SERIAL) are the
easiest things to deal with. However, there are many cases where a
multi-column key can be superior.
Fabian Pascal has an excellent disussion of evaluating the suitability
of candidate keys in selecting a primary key in Practical Issues in
Database Design. It may also be on his web site
(http://www.firstsql.com/dbdebunk/).
(Candidate keys are unique combos of information in a table that could
be a primary key if you wanted)
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
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: josh@agliodbs.com, chrup999@yahoo.com
Subject: Re: More Database Design Stuff
In-Reply-To: <web-95984@davinci.ethosmedia.com>
* 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