pgsql: Wake up for latches in CheckpointWriteDelay().

2022-03-15 Thread Thomas Munro
Wake up for latches in CheckpointWriteDelay(). The checkpointer shouldn't ignore its latch. Other backends may be waiting for it to drain the request queue. Hopefully real systems don't have a full queue often, but the condition is reached easily when shared_buffers is small. This involves defi

pgsql: Wake up for latches in CheckpointWriteDelay().

2022-03-15 Thread Thomas Munro
Wake up for latches in CheckpointWriteDelay(). The checkpointer shouldn't ignore its latch. Other backends may be waiting for it to drain the request queue. Hopefully real systems don't have a full queue often, but the condition is reached easily when shared_buffers is small. This involves defi