model-writtenrun 4148 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra reported excessive CPU usage by otherwise idle PostgreSQL 16 logical replication walsenders, supplied a reproducer, and traced the wakeup loop to condition-variable cancellation in #1.
- Andres Freund identified unnecessary signal forwarding during cancellation as the problem, described encountering it with AIO, and questioned whether forwarding was needed at all in #2.
- Thomas Munro explained that walsender's direct latch waits bypassed the normal wait-list reinsertion and submitted a patch replacing automatic signal forwarding with a boolean return value from ConditionVariableCancelSleep() in #3.
- Andres Freund endorsed the fix while proposing a broader redesign to reduce wait-list contention in #4, and Tomas Vondra confirmed that the patch eliminated his reproducible high CPU usage in #5.
- Thomas Munro committed #3 unchanged as 5ffb7c7750, with a PostgreSQL 16 backport, and announced the push in #6.
- After the commit, Antonin Houska questioned whether transaction abort cleanup should forward signals received during cancellation in #7; Thomas Munro explained why parallel error propagation protects the in-tree user and suggested revisiting end-of-wait semantics for PostgreSQL 17 in #8.
- Antonin Houska acknowledged the in-tree safety argument and explained his pg_squeeze extension's error handling in #9, leaving the wakeup-storm fix landed and the broader condition-variable redesign as future work.