Re: UUID with variable length

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: UUID with variable length
Дата
Msg-id 20201016153352.GN19056@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: UUID with variable length  (Christophe Pettus <xof@thebuild.com>)
Список pgsql-general
Greetings,

* Christophe Pettus (xof@thebuild.com) wrote:
> > On Oct 15, 2020, at 13:49, Dirk Krautschick <Dirk.Krautschick@trivadis.com> wrote:
> > Or do you have some other ideas how to use a primary key datatype like UUID but with variable length?
>
> You're probably best off storing it as a VARCHAR() with a check constraint or constraint trigger that validates it.

Surely a bytea would be better and be less overhead than storing it as
text..

Thanks,

Stephen

Вложения

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

Предыдущее
От: Jean-Marc Lessard
Дата:
Сообщение: RE: Does the work made by vaccum in the current pass is lost when interrupted?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: UUID with variable length