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

From Grzegorz Jaśkiewicz
Subject Re: UUID column as pimrary key?
Date
Msg-id AANLkTimOa4zZxCApCNw6DGQAmWdT2yuzJuJUgjqj-0X1@mail.gmail.com
Whole thread Raw
In response to Re: UUID column as pimrary key?  (Scott Ribe <scott_ribe@elevated-dev.com>)
Responses Re: UUID column as pimrary key?  (Mike Christensen <mike@kitchenpc.com>)
Re: UUID column as pimrary key?  (Scott Ribe <scott_ribe@elevated-dev.com>)
List pgsql-general
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.


--
GJ

pgsql-general by date:

Previous
From: Scott Ribe
Date:
Subject: Re: UUID column as pimrary key?
Next
From: Mike Christensen
Date:
Subject: Re: UUID column as pimrary key?