pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor DetermineSleepTime() to use milliseconds.
Date: Thu, 12 Jan 2023 03:44:26 +0000
Message-ID: <E1pFoVu-003E31-AH@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1pFoVu-003E31-AH@gemulon.postgresql.org>
Permalink:  ../E1pFoVu-003E31-AH@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pFoVu-003E31-AH@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Refactor DetermineSleepTime() to use milliseconds.
  In-Reply-To: <E1pFoVu-003E31-AH@gemulon.postgresql.org>
  References: <E1pFoVu-003E31-AH@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox