Introduce a WaitEventSet for the stats collector.
authorThomas Munro <tmunro@postgresql.org>
Thu, 30 Jul 2020 05:25:48 +0000 (17:25 +1200)
committerThomas Munro <tmunro@postgresql.org>
Thu, 30 Jul 2020 05:44:28 +0000 (17:44 +1200)
commite7591fd3cae6c64236ef29d3c87e69b96608a19b
tree0db0ae04cd129de5682c0765e833567445dc1b7f
parente2d394df5df28ab5ee4bfac6b13837e99e24045d
Introduce a WaitEventSet for the stats collector.

This avoids avoids some epoll/kqueue system calls for every wait.

Reviewed-by: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/CA%2BhUKGJAC4Oqao%3DqforhNey20J8CiG2R%3DoBPqvfR0vOJrFysGw%40mail.gmail.com
src/backend/postmaster/pgstat.c