Re: What is a typical precision of gettimeofday()? - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: What is a typical precision of gettimeofday()?
Date
Msg-id CAJ7c6TO8RZJQUeCdFTgVbZFmHCgQJqDOy8vBsh3Oj05d60GcuQ@mail.gmail.com
Whole thread Raw
In response to Re: What is a typical precision of gettimeofday()?  ("Andrey M. Borodin" <x4mmm@yandex-team.ru>)
Responses Re: What is a typical precision of gettimeofday()?
List pgsql-hackers
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 interprocess
monotonicityalmost 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.

--
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Conflict Detection and Resolution
Next
From: Matthias van de Meent
Date:
Subject: Re: Incorrect Assert in BufFileSize()?