Re: UUID v7

Поиск
Список
Период
Сортировка
От Andrey M. Borodin
Тема Re: UUID v7
Дата
Msg-id B3512DC7-FDB0-4496-85F3-051711B8BF50@yandex-team.ru
обсуждение исходный текст
Ответ на Re: UUID v7  ("Andrey M. Borodin" <x4mmm@yandex-team.ru>)
Ответы Re: UUID v7
Список pgsql-hackers

> On 8 May 2024, at 18:37, Andrey M. Borodin <x4mmm@yandex-team.ru> wrote:
>
> It's RFC now.

PFA version with references to RFC instead of drafts.
In nearby thread [0] we found out that most systems have enough presicion to fill additional 12 bits of sub-millisecond
information.So I switched implementation to this method. 
We have a portable gettimeofday(), but unfortunately it gives only 10 bits of sub-millisecond information. So I created
portableget_real_time_ns() for this purpose: it reads clock_gettime() on non-Windows platforms and
GetSystemTimePreciseAsFileTime()on Windows. 

Thanks!


Best regards, Andrey Borodin.

[0] https://www.postgresql.org/message-id/flat/be0339cc-1ae1-4892-9445-8e6d8995a44d%40eisentraut.org


Вложения

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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: Removing unneeded self joins
Следующее
От: Nazir Bilal Yavuz
Дата:
Сообщение: Re: Use read streams in CREATE DATABASE command when the strategy is wal_log