Re: surrogate key or not? - Mailing list pgsql-sql

From Karsten Hilbert
Subject Re: surrogate key or not?
Date
Msg-id 20040724110634.B699@hermes.hilbert.loc
Whole thread Raw
In response to Re: surrogate key or not?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
On Fri, Jul 23, 2004 at 10:07:48AM -0400, Tom Lane wrote:

> The other standard reason for using a made-up value as primary key is
> that it's under your control and you can guarantee it isn't going to
> change: one record will have the same primary key for its entire life,
> which vastly simplifies handling of foreign keys and so forth.
That is pretty much the main reason why our schema does so.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346


pgsql-sql by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: surrogate key or not?
Next
From: Markus Bertheau
Date:
Subject: Is a backend id or something available for use as a foreign key?