]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Avoid unnecessary process wakeups in the log collector.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 May 2012 23:21:54 +0000 (19:21 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 May 2012 23:21:54 +0000 (19:21 -0400)
commit398b240151708d7e971631875760ddbad3a63e0e
treeb4e226d70e5388d1cc62411e63445999566ada6f
parent7b85527eaee2cdcfc33d9f8c6c8e4a4908f7f58d
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).
src/backend/postmaster/syslogger.c