Re: Primary Key - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Primary Key
Date
Msg-id 20071126101926.21461a6a@commandprompt.com
Whole thread Raw
In response to Re: Primary Key  (Steve Crawford <scrawford@pinpointresearch.com>)
Responses Re: Primary Key  (Richard Broersma Jr <rabroersma@yahoo.com>)
Re: Primary Key  (Steve Crawford <scrawford@pinpointresearch.com>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 26 Nov 2007 10:11:37 -0800
Steve Crawford <scrawford@pinpointresearch.com> wrote:


> Although I haven't seen it much, recently, semi-trucks used to
> regularly have with numerous plates - one for each state in which
> they operated. And some states such as Texas allow you to have the
> same amateur-radio plate number on multiple vehicles.
> 
> I won't argue that there are no reasonable natural keys. But I have
> sure seen plenty of cases where what appeared to be a natural key was 
> discovered, generally at a very inopportune time in the development 
> process, to be not-so-natural after all.

In "theory" the item that would be a natural key in this instance is
the VIN. You would of course have to make some kind of allowance for
cars that don't have a VIN (nothing in the last what... 50 years?).

Joshua D. Drake


> 
> Cheers,
> Steve
> 
> ---------------------------(end of
> broadcast)--------------------------- TIP 5: don't forget to increase
> your free space map settings
> 


- -- 

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997  http://www.commandprompt.com/
            UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHSw4xATb/zqfZUUQRAgNgAJ9y3duugBxPeXdnyyIGycZwRGLrowCePzqo
v54FYcWDsMTnDcBzix+MvOM=
=1leN
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: Chris Browne
Date:
Subject: Re: replication in Postgres
Next
From: Richard Broersma Jr
Date:
Subject: Re: Primary Key