Re: OID's vs Relational Keys?

From: paul c <toledobythesea_at_oohay.ac>
Date: Wed, 21 Dec 2005 22:46:36 GMT
Message-ID: <gXkqf.166391$Gd6.69869_at_pd7tw3no>


jason.glumidge_at_gmail.com wrote:
> ...
>
> 1) The first was that Date adamantly and repeatedly states that OID's
> are pointers. Now I am really foxed by this - as far as I've ever been
> concerned a pointer is a variable that stores a memory address. So how
> an earth can an ID be such a thing? If anything an OID is more like the
> memory address that a pointer stores. But even then surely that is a
> misleading comparison, as a memory address is a fixed physical
> location, ...

Just another question: what machine is memory address 0x00043562 in? Where would that location be?

> ... wheres an OID is location independent.
>
> 2) Date sees no worth in a distinction between identity and equality,
> stating that it is a nonsense that "two objects that look the same to
> the user (meaning the user has no way to tell them apart) might in fact
> be distinct." going on to say that there is no use for "duplicates". My
> first impression is that this seems to happen all the time in the real
> world, where while we know full well two things are distinct but do not
> currently possess the attribute that defines this difference.

If we are positive that they are different, then we can make up an attribute.

> ... Or there
> are two items which are identical in all their defining attriubtes but
> are still unique (their location is different for instance, which we
> can't continually record).

If they are 'items' in the real world, we could record something. If they are items in 'storage', we are wasting storage!

>
> Now we all employ surrogate keys to enforce this distinction, but this
> is a value we've just artificially constructed, not part of the real
> items uniqueness.

An additional attribute doesn't have to be a surrogate key.

 > While the mechanism is different (and I agree with
> Date on the logistical differences) this seems to just be giving the
> tuple an identifier, again to allow a distinction between identity and
> equality (two items in an RDBMS are equal if everything apart from
> their surrogate id is the same), that he originally objects to.

If we "know full well two things are distinct", how could they be equal?

just my reactions, no offence,

cheers,
p

>
> I'm finding it tough seeing the wood from the trees with different
> types of databases.
>
Received on Wed Dec 21 2005 - 23:46:36 CET

Original text of this message