model-writtenrun 4770 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Feb - Mar 2022 · 5 entries
- Simon Riggs opened the thread with shared hibernation macros, longer idle sleeps across worker processes, and opt-in standby and subscription settings intended to reduce idle power consumption #1.
- Andres Freund argued that workers should use explicit wakeups or precisely calculated deadlines because periodic polling can conceal missed-wakeup bugs, while Thomas Munro described related WAL-receiver work and questioned retaining filesystem-based promotion #2 #3.
- Simon retained the common hibernation approach but removed the opt-in settings and proposed deprecating promote_trigger_file; subsequent revisions corrected Chapman Flack's example-comment finding, expanded the documentation, and fixed the configuration-sample test #4 #5 #6 #16.
- Tom Lane raised the risk of losing an edge-triggered promotion request, and Simon explained that pg_ctl promote already combines a persistent file with a signal, so the proposal affected only direct creation of the configurable trigger file #8 #12.
- Kyotaro Horiguchi identified misuse of the WAL-receiver startup timeout, and Robert Haas opposed treating all worker waits alike; Simon consequently extracted the startup-only patch with a 60-second wait and promotion-file deprecation #17 #19 #20.
Nov 2022 · 10 entries
- After a gap of several months, Simon rebased the startup-only patch; Thomas approved it but identified separate SIGALRM wakeups, prompting a temporary timeout-management addition that Simon withdrew when another thread took responsibility for that fix #23 #24 #25 #26.
- Bharath Rupireddy objected that increasing trigger-file detection from five to sixty seconds could harm failover expectations, and Robert proposed removing the obsolete interface immediately instead of retaining a slower deprecated implementation #27 #29 #31.
- Bharath supported immediate removal, and Simon replaced polling with an indefinite latch wait; Thomas tested that version together with the separate SIGALRM fix and reported passing tests and a completely idle recovery process #34 #36 #37.
- Simon corrected removal wording and a broken documentation reference, then revived the separate bgwriter/walwriter proposal with 60-second hibernation and a dedicated WAL-writer wait event #38 #39 #40.
- Thomas prepared the startup patch for commit, removing a leftover header declaration and crediting Simon as author, while Bharath tested it and requested removal of obsolete historical wording from the code #41 #46.
- Simon left logical-worker improvements to Nathan Bossart after learning of Nathan's overlapping work, which still had a check-world slowdown to investigate #42 #43 #48.
- Laurenz Albe opposed removal without a formal deprecation period and suggested polling only when configured; Robert Haas and Tom Lane supported immediate removal because alternatives were longstanding and migration was simple, Laurenz withdrew his objection, and Ian Lawrence Barwick supplied further evidence of limited use #44 #49 #52 #53 #54 #55.
- Thomas posted the final startup revision with expanded historical documentation, after which Bharath, Robert, and Tom requested comment and documentation cleanup #56 #57 #58 #59.
- Thomas committed Simon's startup change as cd4329d939 from #56, preserving its implementation while correcting documentation and rewording stale trigger-file comments, then announced the landing #60.
- Simon reposted the unchanged bgwriter/walwriter patch to keep that unfinished work in the CommitFest, and Thomas questioned whether its 60-second waits should instead become indefinite waits after validating the wakeup protocols #62 #63.
Jan 2023 · 2 entries
- The discussion resumed in January with Thomas and Tom emphasizing the need to account for every relevant wakeup; Thomas clarified that the concern was the bgwriter notification protocol's race rather than signals being lost #65 #66 #67 #68.
- The thread ends with Bharath's new WAL-writer patch replacing timed hibernation with indefinite waiting and wakeups on WAL insertion; the startup change is committed, while this WAL-writer rework and the remaining background-writer improvements are unresolved, including wakeup overhead and workload testing #69.