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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bernd Helmle <mailings@oopsware.de>
Cc: Hannu Krosing <hannuk@google.com>, "Andrey M. Borodin" <x4mmm@yandex-team.ru>, Peter Eisentraut <peter@eisentraut.org>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-07-11T15:27: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.

Bernd Helmle <mailings@oopsware.de> writes:
> FYI, since this commit TAP test pg_test_timing/001_basic on my machine
> with de_DE.UTF8 locale keeps failing with:
> ...
> Of course this is because of the localized comma in 99,9900%

Ah.  I had the idea that we forced C locale in TAP tests,
but evidently that's not happening here.  Will fix, thanks
for the report!

			regards, tom lane