wal writer: obsolete sentence

From: "Euler Taveira" <euler(at)eulerto(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: wal writer: obsolete sentence
Date: 2025-03-28 23:09:25
Message-ID: f429aab9-0840-4043-901d-68d2231197b4@app.fastmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I'm wondering if the following sentence about time resolution is still true. It
is still like that since the initial wal writer commit [1].

If this value is specified without units, it is taken as milliseconds.
The default value is 200 milliseconds (<literal>200ms</literal>). Note that
on some systems, the effective resolution of sleep delays is 10
milliseconds; setting <varname>wal_writer_delay</varname> to a value that is
not a multiple of 10 might have the same results as setting it to the
next higher multiple of 10. This parameter can only be set in the

The commit 623cc673 removed gettimeofday() in favor of CLOCK_MONOTONIC /
CLOCK_REALTIME in *nix platforms. Windows also has some modern API after
commits 24c3ce8f and 495ed0ef deprecated support for old releases [2]. I
inspected the buildfarm to see if there might be any animals whose sentence
might be true but I don't think so.

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=ad4295728e04f4107f4dcbbee4950e526becb95d
[2] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=01126dc8cf2c6e06babf1bbb4dab41a4a96d704f

--
Euler Taveira
EDB https://www.enterprisedb.com/

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2025-03-28 23:20:58 Re: Statistics import and export: difference in statistics of materialized view dumped
Previous Message Andrew Dunstan 2025-03-28 22:20:42 Re: Non-text mode for pg_dumpall