pgsql: Avoid unnecessary process wakeups in the log collector.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Avoid unnecessary process wakeups in the log collector.
Дата
Msg-id E1STLdr-000284-9o@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Remove unused AC_SUBST variables
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix bogus declaration of local variable.