Avoid unnecessary process wakeups in the log collector.
syslogger was coded to wake up once per second whether there was anything
useful to do or not. As part of our campaign to reduce the server's idle
power consumption, change it to use a latch for waiting. Now, in the
absence of any data to log or any signals to service, it will only wake up
at the programmed logfile rotation times (if any).
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/398b240151708d7e971631875760ddbad3a63e0e
Modified Files
--------------
src/backend/postmaster/syslogger.c | 95 +++++++++++++++++++++++++-----------
1 files changed, 66 insertions(+), 29 deletions(-)