Re: UUID column as pimrary key?

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: Mike Christensen <mike(at)kitchenpc(dot)com>
Cc: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>, Radosław Smogura <rsmogura(at)softperience(dot)eu>, PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: UUID column as pimrary key?
Date: 2011-01-05 16:46:27
Message-ID: AANLkTik=Z_H1xN7CuTWkvJ5yC8o61y0q+qhVYtj-VzsU@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 5, 2011 at 3:03 PM, Mike Christensen <mike(at)kitchenpc(dot)com> wrote:
> 2011/1/5 Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>:
>> On Wed, Jan 5, 2011 at 2:37 PM, Scott Ribe <scott_ribe(at)elevated-dev(dot)com> wrote:
>>> On Jan 5, 2011, at 1:31 AM, Radosław Smogura wrote:
>>>
>>>> * simple to generate, and 128bit random is almost globally unique,
>>>
>>> Almost? Should be totally unique, as long as your random source is decent quality.
>>
>> But I would never rely on that alone. You always have a strategy in
>> place, in case there's a duplicate.
>
> As long as all your UUIDs are generated with the same algorithm, they
> are guaranteed to be unique.
>

Good luck with that ....

--
GJ

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2011-01-05 16:57:45 Re: UUID column as pimrary key?
Previous Message Scott Ribe 2011-01-05 16:33:51 Re: UUID column as pimrary key?