Re: surrogate key or not?

Поиск
Список
Период
Сортировка
От Karsten Hilbert
Тема Re: surrogate key or not?
Дата
Msg-id 20040724110634.B699@hermes.hilbert.loc
обсуждение исходный текст
Ответ на Re: surrogate key or not?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: surrogate key or not?
Следующее
От: Markus Bertheau
Дата:
Сообщение: Is a backend id or something available for use as a foreign key?