pgsql: Refactor DetermineSleepTime() to use milliseconds.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor DetermineSleepTime() to use milliseconds.
Date: 2023-01-12 03:44:26
Message-ID: E1pFoVu-003E31-AH@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor DetermineSleepTime() to use milliseconds.

Since we're not using select() anymore, we don't need to bother with
struct timeval. We can work directly in milliseconds, which the latch
API wants.

Discussion: https://postgr.es/m/CA%2BhUKG%2BZ-HpOj1JsO9eWUP%2Bar7npSVinsC_npxSy%2BjdOMsx%3DGg%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5a26c7b310b629f8893483cc3cce5bbfa7879115

Modified Files
--------------
src/backend/postmaster/postmaster.c | 57 ++++++++++++-------------------------
1 file changed, 18 insertions(+), 39 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2023-01-12 04:01:31 pgsql: Revert "Get rid of the "new" and "old" entries in a view's range
Previous Message Tom Lane 2023-01-12 03:20:10 pgsql: Doc: fix silly thinko in 8bf6ec3ba.