model-writtenrun 3032 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier proposed separate pending-data and flush callbacks for fixed-numbered statistics, converting IO, SLRU and WAL while making their pending flags private; his initial laptop measurements showed no runtime difference #1.
- Kyotaro Horiguchi supported the generalization but suggested removing or relocating redundant-looking pending checks, while Bertrand Drouvot proposed merging the callbacks using an additional check-only parameter #2 #3.
- Michael defended the fast path that avoids checking the clock and explained that individual flush callbacks must retain pending checks because activity in any statistics kind triggers the flush pass #4.
- Bertrand clarified that a check-only parameter could preserve the fast path, and Kyotaro withdrew his check-removal suggestion after accepting that flush callbacks are called unconditionally once flushing begins #5 #6.
- Michael committed the original implementation, rebased over the WAL initialization callback change and accompanied by an expanded commit message, as fc415edf8c from #1.
- After committing, Michael reiterated the fast-path behavior and explained that keeping checking and flushing separate avoids combining check_only with nowait into four states for extension developers; the work had landed, although he remained open to revisiting the interface during development and beta #7 #8.