Re: Sequential UUID Generation

Поиск
Список
Период
Сортировка
От Sehrope Sarkuni
Тема Re: Sequential UUID Generation
Дата
Msg-id CAH7T-aoi7ufZ2KnFbeJgVg4iSY5q52t5vSd_sXXwdkTvWdAtUg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Sequential UUID Generation  (Adam Brusselback <adambrusselback@gmail.com>)
Ответы Re: Sequential UUID Generation
Список pgsql-hackers
I came across a project for time based UUID ("tuid") a little while back: https://github.com/tanglebones/pg_tuid

I haven't used in production but skimmed through the code a bit out of technical curiosity. It handles some of the expected edge cases for backwards clock drift and concurrent generation.

The repo includes a PG extension and sample app code for generating tuids in a couple languages as well as a pure-SQL one (though that one uses random() rather than get_random_bytes() so I'd consider it more of an proof of concept).

Regards,
-- Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | https://www.jackdb.com/

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Super PathKeys (Allowing sort order through precision loss functions)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Lambda expressions (was Re: BUG #15471)