Introduce a WaitEventSet for the stats collector.

Thomas Munro <tmunro@postgresql.org>

Commit: e7591fd3cae6c64236ef29d3c87e69b96608a19b
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2020-07-30T05:44:28Z
Releases: 14.0
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

Files

PathChange+/−
src/backend/postmaster/pgstat.c modified +14 −10

Discussion