model-writtenrun 5716 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported that small shared_buffers settings filled the checkpointer sync queue while backends silently polled, because setting the checkpointer latch did not reliably interrupt pg_usleep(); he proposed latch waits and observable wait events #1.
- Michael Paquier supported adding wait events to stable branches provided their enum values were appended, and Julien Rouhaud agreed while explaining the limited extension compatibility impact #2 #3.
- Thomas Munro submitted the checkpointer latch fix, reported a FreeBSD test-runtime improvement from roughly 29.5 to 19.6 seconds, and identified a separate RegisterSyncRequest() loop that could ignore postmaster death; he proposed a minimal fix plus a later condition-variable implementation #4.
- Andres Freund reinforced the stable-branch enum requirement, supported exposing the backend wait, and favored keeping the larger waiting improvement out of back branches #5.
- Thomas Munro expanded the submission into three patches: the revised checkpointer fix, a minimal backend wait fix, and a condition-variable implementation that explicitly held interrupts to preserve unlink-request handling #6.
- Andres Freund approved the two minimal fixes but questioned the condition-variable patch's new wait parameter and removal of the checkpointer_pid check, also raising possible exclusive-lock contention #7.
- Thomas Munro landed the first two patches unchanged as 5e6368b42e and 3390ef1b7b, backpatching the checkpointer fix to PostgreSQL 14 and the backend wait fix through PostgreSQL 12; he deferred older branches because their code differed and there were no field reports #8.
- The thread ended with Thomas Munro documenting a stalled-checkpointer reproduction and promising to return to the condition-variable patch, which remained uncommitted with review questions outstanding #8.