mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
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
This commit is contained in:
@ -817,6 +817,8 @@ typedef enum
|
||||
WAIT_EVENT_BGWORKER_STARTUP,
|
||||
WAIT_EVENT_BTREE_PAGE,
|
||||
WAIT_EVENT_CLOG_GROUP_UPDATE,
|
||||
WAIT_EVENT_CHECKPOINT_DONE,
|
||||
WAIT_EVENT_CHECKPOINT_START,
|
||||
WAIT_EVENT_EXECUTE_GATHER,
|
||||
WAIT_EVENT_HASH_BATCH_ALLOCATING,
|
||||
WAIT_EVENT_HASH_BATCH_ELECTING,
|
||||
|
Reference in New Issue
Block a user