Re: GUID for postgreSQL - Mailing list pgsql-general

From Greg Stark
Subject Re: GUID for postgreSQL
Date
Msg-id 87slxx7dmt.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: GUID for postgreSQL  ("John D. Burger" <john@mitre.org>)
List pgsql-general
"John D. Burger" <john@mitre.org> writes:

> > If you use a large enough space for the number you can reduce that
> > probability of an accidental collision to much less than that of
> > catastrophic hardware failure at which point it isn't noticably better
> > than having no chance of collisions.
>
> I find the comparison unconvincing - if my hardware crashes, I know it and can
> decide how to recover.  If two UIDs collide, my system may silently do
> something that may never be detected.

Alright, say the probability of a cosmic ray flipping one bit (if you're
picky, flipping two or three bits perfectly arranged so ECC ram doesn't detect
it). That would produce similarly subtle and unpredictable behaviour,
especially if it hit in a primary key.

Though I'm inclined to agree. They seem to be a fad with not much reason to
exist.

--
greg

pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: Megabytes of stats saved after every connection
Next
From: Bruno Wolff III
Date:
Subject: Re: GUID for postgreSQL