Re: surrogate key or not?

From: sad <sad(at)bankir(dot)ru>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: surrogate key or not?
Date: 2004-07-21 10:30:16
Message-ID: 200407211430.16674.sad@bankir.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wednesday 21 July 2004 14:58, Markus Bertheau wrote:

> > 4) Replication: to identify an object of ANY type (record of any table
> > regardless to datamodel), to store lists of deleted or modified objects
> > (regardless to datamodel)
>
> That sounds like a datamodel on data that belongs to another data model,

that's right, these surr. keys actually belong to a metadata model,
but it is also useful to references of a data model. and they are used this
way.

> > 5) Making a primary key: if there is no real key at all.
>
> When there's no key at all, there can't be a surrogate key, as I
> understand it. In such cases a generated unique number comes in handy,
> and it's a real primary key and no surrogate key.

...right. in case (5) we construct another datamodel indeed. with an
artifichial real key :-)

P.S. r u from Russia ?

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Markus Bertheau 2004-07-21 10:58:35 Re: surrogate key or not?
Previous Message azah azah 2004-07-21 08:33:38 Please help me.. problem in to_char