Re: What is a typical precision of gettimeofday()?
От | Andrey M. Borodin |
---|---|
Тема | Re: What is a typical precision of gettimeofday()? |
Дата | |
Msg-id | F9F051F4-FED4-4391-AF2A-40663A7D85A0@yandex-team.ru обсуждение исходный текст |
Ответ на | Re: What is a typical precision of gettimeofday()? (Aleksander Alekseev <aleksander@timescale.com>) |
Ответы |
Re: What is a typical precision of gettimeofday()?
|
Список | pgsql-hackers |
> On 3 Jul 2024, at 13:48, Aleksander Alekseev <aleksander@timescale.com> wrote: > > Hi, > >> That’s a very interesting result, from the UUID POV! >> If time is almost always advancing, using time readings instead of a counter is very reasonable: we have interprocessmonotonicity almost for free. >> Though time is advancing in a very small steps… RFC assumes that we use microseconds, I’m not sure it’s ok to use 10 morebits for nanoseconds… > > A counter is mandatory since someone can for instance change the > system's time while the process is generating UUIDs. You can't > generally assume that local time of the system is monotonic. AFAIR according to RFC when time jumps backwards, we just use time microseconds as a counter. Until time starts to advanceagain. Best regards, Andrey Borodin.
В списке pgsql-hackers по дате отправления: