Refactor DetermineSleepTime() to use milliseconds.
Thomas Munro <tmunro@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/postmaster/postmaster.c | modified | +18 −39 |
Discussion
- Using WaitEventSet in the postmaster 28 messages · 2022-12-01 → 2023-01-28