postgresql/src/backend/postmaster
Robert Haas 7f242d880b Try to avoid running with a full fsync request queue.
When we need to insert a new entry and the queue is full, compact the
entire queue in the hopes of making room for the new entry.  Doing this
on every insertion might worsen contention on BgWriterCommLock, but
when the queue it's full, it's far better than allowing the backend to
perform its own fsync, per testing by Greg Smith as reported in
http://archives.postgresql.org/pgsql-hackers/2011-01/msg02665.php

Original idea from Greg Smith.  Patch by me.  Review by Chris Browne
and Greg Smith
2011-01-29 08:08:41 -05:00
..
autovacuum.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
bgwriter.c Try to avoid running with a full fsync request queue. 2011-01-29 08:08:41 -05:00
fork_process.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pgarch.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
pgstat.c Add views and functions to monitor hot standby query conflicts 2011-01-03 12:46:03 +01:00
postmaster.c Avoid treating WAL senders as normal backends. 2011-01-21 22:23:01 -05:00
syslogger.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
walwriter.c Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00