pgsql: Avoid unnecessary process wakeups in the log collector. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid unnecessary process wakeups in the log collector.
Date
Msg-id E1STLdr-000284-9o@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Remove unused AC_SUBST variables
Next
From: Tom Lane
Date:
Subject: pgsql: Fix bogus declaration of local variable.