Re: Primary Key

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Primary Key
Date: 2007-11-26 18:48:11
Message-ID: 20071126104811.1f56f0ef@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 26 Nov 2007 10:28:03 -0800 (PST)
Richard Broersma Jr <rabroersma(at)yahoo(dot)com> wrote:

> --- On Mon, 11/26/07, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
>
> > 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?).
>
> So this is why the service stations always record my cars VIN number
> when I show up for oil changes. ;) Ofcourse, there is a whole
> industry built around auto theft where they restamp the stolen car
> with a differnt vin number. I wonder if these stolen cars end up
> with duplicated VIN numbers or if the VIN's they are given do not
> pass the the VIN check-sum (if such a think exists).

They may end up with duplicate VINs but that isn't really relevant as
at that point we know that one of the two (or six or whatever) cars are
invalid, thus the "natural" key is still valid and designed to alert us
if there is any potential problem :)

Sincerely,

Joshua D. Drake

>
> Regards,
> Richard Broersma Jr.
>
> ---------------------------(end of
> broadcast)--------------------------- TIP 1: if posting/reading
> through Usenet, please send an appropriate subscribe-nomail command
> to majordomo(at)postgresql(dot)org so that your message can get through to
> the mailing list cleanly
>

- --

=== 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)

iD8DBQFHSxTtATb/zqfZUUQRAoDbAJ9h+NcHeyj7b1dmFAXl5uSWUbHzJwCfVOSW
vBFs5lpCXrgeCwOu0wud9S8=
=9AfY
-----END PGP SIGNATURE-----

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Medi Montaseri 2007-11-26 18:52:52 Re: Migrating from 32 to 64 bit
Previous Message Garber, Mikhail 2007-11-26 18:38:29 Re: Primary Key