model-writtenrun 2929 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Anton A. Melnikov opened the thread with a reproduction showing bursts of restartpoint requests after a large primary-side insert, and proposed suppressing requests until a newer usable checkpoint record arrived in #1.
- Kyotaro Horiguchi explained that the burst was understandable behavior rather than necessarily a bug, identified unsafe shared-state access and duplicated checks, and suggested a safer helper in #2; Anton adopted that helper and also described an alternative using separate restartpoint statistics in #3.
- Andres Freund reported missing regression expectations for the statistics alternative in #4; Anton said he fixed those expectations and rebased the request-suppression alternative in #5, then resent the alternatives while awaiting design feedback in #6.
- After the long gap, Alexander Korotkov favored additional statistics without changing restartpoint behavior and requested explanatory documentation in #7; Anton dropped the suppression approach, moved the counters into pg_stat_checkpointer, and supplied implementation and documentation patches in #8.
- Alexander combined and polished the patches in #9, then committed them with only an additional catalog-version bump as 12915a58ee, announcing the landing in #10.
- Magnus Hagander noticed that the remaining write-time, sync-time, and buffer-count descriptions incorrectly appeared to exclude restartpoints in #12; Alexander supplied a documentation correction in #13, and Anton proposed a matching buffers_written catalog description in #14.
- Alexander incorporated that catalog wording in #15 but declined separate restartpoint write and sync timing counters because the buffer-writing process is shared, then committed the revised patch unchanged as e820db5b56 and announced it in #16.
- Fujii Masao observed that checkpoints can also be skipped and proposed a completed-checkpoint counter in #18; Anton introduced num_done in #19, but Fujii found that the initial implementation still counted skipped checkpoints and questioned the need for the proposed regression test in #20.
- Fujii separated the immediately useful num_timed documentation correction into #21, Alexander approved it in #22, and Fujii committed it unchanged as a7c39db5eb, including a backport to PostgreSQL 17 as announced in #24.
- Anton made CreateCheckPoint() return whether work occurred in #23, but Fujii identified unintended 15-second retries after skipped checkpoints and unnecessary OID reassignment in #25; Anton corrected scheduling and preserved existing OIDs in #26.
- Fujii polished the num_done patch, removed unrelated catalog-entry movement, and added a separate explanation of completed versus skipped checkpoints and restartpoints in #27; Anton approved the documentation, reported successful testing, and suggested matching catalog-description cleanup in #28.
- Fujii committed the num_done component of #27 as 559efce1d6, changing only the new function OID, catalog formatting, and catalog version, and explained in #29 that avoiding unrelated entry movement would simplify future backpatching.
- Before the documentation component landed, Fujii clarified in #29 that the frequent-checkpoint warning does not skip checkpoints, and Anton accepted that correction in #30; Fujii then committed the documentation component of #27 unchanged as a19f83f879 and announced it in #31.
- Fujii followed up on Anton’s catalog-wording suggestion with #32, removing misleading backend-specific descriptions; Anton checked and approved it in #33, and Fujii committed it with an added catalog-version bump as 1909835c28, announcing the result in #34.
- The thread ends with Anton’s acknowledgment in #35, with all retained statistics and documentation work landed, the original request-suppression approach abandoned, and no outstanding patch identified.