postgresql/src/backend/postmaster
Thomas Munro c6c9474aaf Use condition variables to wait for checkpoints.
Previously we used a polling/sleeping loop to wait for checkpoints
to begin and end, which leads to up to a couple hundred milliseconds
of needless thumb-twiddling.  Use condition variables instead.

Author: Thomas Munro
Reviewed-by: Andres Freund
Discussion: https://postgr.es/m/CA%2BhUKGLY7sDe%2Bbg1K%3DbnEzOofGoo4bJHYh9%2BcDCXJepb6DQmLw%40mail.gmail.com
2019-03-14 10:59:33 +13:00
..
autovacuum.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
bgworker.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
bgwriter.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
checkpointer.c Use condition variables to wait for checkpoints. 2019-03-14 10:59:33 +13:00
fork_process.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Revert "Allow on-line enabling and disabling of data checksums" 2018-04-09 19:03:42 +02:00
pgarch.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
pgstat.c Use condition variables to wait for checkpoints. 2019-03-14 10:59:33 +13:00
postmaster.c Don't log incomplete startup packet if it's empty 2019-03-06 15:36:41 -05:00
startup.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
syslogger.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
walwriter.c Update copyright for 2019 2019-01-02 12:44:25 -05:00