Re: UUID column as pimrary key?

Поиск
Список
Период
Сортировка
От David Wall
Тема Re: UUID column as pimrary key?
Дата
Msg-id 4D237224.2010800@computer.org
обсуждение исходный текст
Ответ на UUID column as pimrary key?  (Dennis Gearon <gearond@sbcglobal.net>)
Список pgsql-general
We're using UUID for primary keys in PG 8.4 without any issues.  I have
no real insights into the details or performance issues, but always
figured it was stored as a binary 128-bit value, but with added benefits
of being able to enter and view them using a standard string format.  We
don't sort them as they have no real meaning for us.

On 1/4/2011 11:07 AM, Dennis Gearon wrote:
> I haven't been able to find anywhere, easily, in the documentation using google
> where a list of allowed data types for primary keys is.
>
> So, UUIDs can be primary keys?
> Any issues wtih them on sorting or paging of index tables, etc.?
>
> Also, the documentation says that UUIDs are 128 bit value, but never explicitly
> says that's how it's stored. Nor does it use one of the nice, blue headered
> tables for UUID (or ENUM) showing storage and other attributes as it does for
> numeric, character,boolean, date/time, binary, monetary, geometric, or network
> types.

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: UUID column as pimrary key?
Следующее
От: liliana lazarte
Дата:
Сообщение: Como usar interval con un variable