Re: UUID column as pimrary key? - Mailing list pgsql-general

From Mike Christensen
Subject Re: UUID column as pimrary key?
Date
Msg-id AANLkTi=2s6Q_16yzj8-iYa2=9stGE-mtxJjJk4YAOnji@mail.gmail.com
Whole thread Raw
In response to Re: UUID column as pimrary key?  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Responses Re: UUID column as pimrary key?  (Scott Ribe <scott_ribe@elevated-dev.com>)
Re: UUID column as pimrary key?  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
List pgsql-general
2011/1/5 Grzegorz Jaśkiewicz <gryzman@gmail.com>:
> On Wed, Jan 5, 2011 at 2:37 PM, Scott Ribe <scott_ribe@elevated-dev.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.

pgsql-general by date:

Previous
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: UUID column as pimrary key?
Next
From: Scott Ribe
Date:
Subject: Re: UUID column as pimrary key?