> On Oct 15, 2020, at 13:49, Dirk Krautschick <Dirk.Krautschick@xxxxxxxxxxxx> 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. -- -- Christophe Pettus xof@xxxxxxxxxxxx