Re: What is a typical precision of gettimeofday()?

Vik Fearing <vik@postgresfriends.org>

From: Vik Fearing <vik@postgresfriends.org>
To: Peter Eisentraut <peter@eisentraut.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, hannuk@google.com, x4mmm@yandex-team.ru
Date: 2025-07-08T00:03:29Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Force LC_NUMERIC to C while running TAP tests.

  2. Minor tweaks for pg_test_timing.

  3. Change pg_test_timing to measure in nanoseconds not microseconds.

On 19/03/2024 09:28, Peter Eisentraut wrote:
> Does anyone know what precision we can expect from gettimeofday()?  
> Can we expect the full microsecond precision usually? 


Having read through this thread, is there any chance at all that we 
might be able to implement feature F555, “Enhanced seconds precision”?


I feel we may have dug ourselves into a hole with integer timestamps 
that span ridiculously long ranges.

-- 

Vik Fearing