Re: UUID column as pimrary key?

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: UUID column as pimrary key?
Дата
Msg-id AANLkTik=Z_H1xN7CuTWkvJ5yC8o61y0q+qhVYtj-VzsU@mail.gmail.com
обсуждение исходный текст
Ответ на Re: UUID column as pimrary key?  (Mike Christensen <mike@kitchenpc.com>)
Список pgsql-general
On Wed, Jan 5, 2011 at 3:03 PM, Mike Christensen <mike@kitchenpc.com> wrote:
> 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.
>

Good luck with that ....



--
GJ

В списке pgsql-general по дате отправления:

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: UUID column as pimrary key?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: UUID column as pimrary key?