]> granicus.if.org Git - postgresql/commit
Wakeup WALWriter as needed for asynchronous commit performance.
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 13 Nov 2011 09:00:57 +0000 (09:00 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 13 Nov 2011 09:00:57 +0000 (09:00 +0000)
commit4de82f7d7c50a81ec8e70e2cb0ab413ab9134c0b
tree7ee129540269debbdf22771e1e99244445213e6a
parent02d88efea1f719e59ce684c2e14bad23d55fdd15
Wakeup WALWriter as needed for asynchronous commit performance.
Previously we waited for wal_writer_delay before flushing WAL. Now
we also wake WALWriter as soon as a WAL buffer page has filled.
Significant effect observed on performance of asynchronous commits
by Robert Haas, attributed to the ability to set hint bits on tuples
earlier and so reducing contention caused by clog lookups.
src/backend/access/transam/xlog.c
src/backend/postmaster/walwriter.c
src/include/access/xlog.h