X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B426AD1B179 for ; Wed, 21 Jul 2004 08:22:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66139-09 for ; Wed, 21 Jul 2004 11:22:16 +0000 (GMT) Received: from rock.spider.ru (rock.spider.ru [62.183.34.226]) by svr1.postgresql.org (Postfix) with ESMTP id 9EDCCD1B1BE for ; Wed, 21 Jul 2004 08:22:10 -0300 (ADT) Received: from rock (localhost [127.0.0.1]) by rock (Postfix) with SMTP id 2C2262772C; Wed, 21 Jul 2004 15:22:13 +0400 (MSD) Received: from sad.localnet.ru (sad.localnet.ru [10.0.0.72]) by rock.spider.ru (Postfix) with ESMTP id 9166F27384; Wed, 21 Jul 2004 15:22:12 +0400 (MSD) Content-Type: text/plain; charset="utf-8" From: sad Organization: IT To: Markus Bertheau Subject: Re: surrogate key or not? Date: Wed, 21 Jul 2004 14:30:16 +0400 User-Agent: KMail/1.4.3 Cc: pgsql-sql@postgresql.org References: <1090325769.3241.27.camel@dicaprio.akademie1.de> <200407211144.01001.sad@bankir.ru> <1090407515.3239.4.camel@dicaprio.akademie1.de> In-Reply-To: <1090407515.3239.4.camel@dicaprio.akademie1.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200407211430.16674.sad@bankir.ru> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/146 X-Sequence-Number: 18398 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= =20 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=20 artifichial real key :-) P.S. r u from Russia ?