Re: PRIMARY KEYS

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Mark Wilson <mwilson13(at)cox(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PRIMARY KEYS
Date: 2003-05-21 17:39:33
Message-ID: 20030521173933.GA13942@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, May 20, 2003 at 15:50:11 -0400,
Mark Wilson <mwilson13(at)cox(dot)net> wrote:
>
> As one example, a primary key with business meaning assures that one
> does not have duplicate records (if the data model is otherwise
> correct).

Unique isn't really good enough. You also want it to be defined for all
records and you don't want it to change.

I don't know about national ID numbers in the UK, but in the US it is
possible to change them, not everyone has one, and they aren't unique
(due to screwups - not intentionally).

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Darko Prenosil 2003-05-21 18:08:29 Re: [HACKERS] about NULL
Previous Message cliff 2003-05-21 17:18:21 compiling mod_auth_pgsql