Re: GUID for postgreSQL

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "John D(dot) Burger" <john(at)mitre(dot)org>
Cc: Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: GUID for postgreSQL
Date: 2005-07-29 17:13:17
Message-ID: 20050729171317.GA15702@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jul 29, 2005 at 12:18:30 -0400,
"John D. Burger" <john(at)mitre(dot)org> wrote:
> >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.

If it crashes yes, if a bit flips maybe not.

Note that by using a larger hash and more random bits you can make this
probability arbitrarily small. For 512 hashes with 512 bits of entropy,
I doubt you could compare documents fast enough to have a 50-50 chance
of finding a collision before the heat death of the universe.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Edmund Dengler 2005-07-29 18:10:44 Failure to use indexes
Previous Message Greg Stark 2005-07-29 16:58:34 Re: GUID for postgreSQL