postgresql/src/backend/postmaster
Heikki Linnakangas 6d90eaaa89 Make bgwriter sleep longer when it has no work to do, to save electricity.
To make it wake up promptly when activity starts again, backends nudge it
by setting a latch in MarkBufferDirty(). The latch is kept set while
bgwriter is active, so there is very little overhead from that when the
system is busy. It is only armed before going into longer sleep.

Peter Geoghegan, with some changes by me.
2012-01-26 18:39:13 +02:00
..
autovacuum.c Classify DROP operations by whether or not they are user-initiated. 2012-01-26 09:30:27 -05:00
bgwriter.c Make bgwriter sleep longer when it has no work to do, to save electricity. 2012-01-26 18:39:13 +02:00
checkpointer.c Allow pg_basebackup from standby node with safety checking. 2012-01-25 18:02:04 +00:00
fork_process.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
Makefile Refactor xlog.c to create src/backend/postmaster/startup.c 2011-11-02 14:25:01 +00:00
pgarch.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
pgstat.c Fix a copy/pasted typo in several comments 2012-01-26 16:02:33 +01:00
postmaster.c Allow pg_basebackup from standby node with safety checking. 2012-01-25 18:02:04 +00:00
startup.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
syslogger.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
walwriter.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00