Skip site navigation (1) Skip section navigation (2)

Re: UUID column as pimrary key?

From: Mike Christensen <mike(at)kitchenpc(dot)com>
To: Grzegorz Jaśkiewicz <gryzman(at)gmail(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 15:03:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
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.

In response to


pgsql-general by date

Next:From: Scott RibeDate: 2011-01-05 15:04:45
Subject: Re: UUID column as pimrary key?
Previous:From: Grzegorz JaśkiewiczDate: 2011-01-05 14:55:53
Subject: Re: UUID column as pimrary key?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group