Refactor DetermineSleepTime() to use milliseconds.

Thomas Munro <tmunro@postgresql.org>

Commit: 5a26c7b310b629f8893483cc3cce5bbfa7879115
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2023-01-12T03:32:30Z
Releases: 16.0
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

Files

PathChange+/−
src/backend/postmaster/postmaster.c modified +18 −39

Discussion