UUID with variable length

Поиск
Список
Период
Сортировка
От Dirk Krautschick
Тема UUID with variable length
Дата
Msg-id AM0PR05MB6082166783DBD33747A49417E9020@AM0PR05MB6082.eurprd05.prod.outlook.com
обсуждение исходный текст
Ответы Re: UUID with variable length  (Christophe Pettus <xof@thebuild.com>)
Re: UUID with variable length  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-general
Hi,

I have here a situation with the usage of UUID. Here the database user allows UUIDs with less then 16 byte lengths
(pleasedon't ask :-) ).
 

Of course there are some technical ways to do the filling of the not used bytes but I hope there is a better solution.
ThisUUID is used
 
as primary Key and for indexing.

CHAR 16 is not preferred because of the risk of mistakenly changing the binary data.

Another option would be e.g. bytea but how is good would it work from a IO an latency perspective.

Or do you have some other ideas how to use a primary key datatype like UUID but with variable length?

Thanks

Dirk

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

Предыдущее
От: Raj Iyer
Дата:
Сообщение: Question on postgres certified OS platforms
Следующее
От: Dirk Krautschick
Дата:
Сообщение: Date Format 9999-12-31-00.00.00.000000