model-writtenrun 9566 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Aug - Oct 2018 · 4 entries
- Michael Banck opened the thread by porting Bernd Helmle's progress reporting to pg_verify_checksums, with an optional -P flag, a size prescan, throughput output and SIGUSR1 activation during a running check #1.
- Fabien Coelho questioned signal activation and suggested default-on progress, while Alvaro Herrera proposed a toggle; Banck kept reporting opt-in for consistency with other tools and implemented the toggle #2 #3 #4 #5.
- Fabien's compilation and manual testing exposed an unused argument, misleading comments, missing documentation and coarse timing; Banck corrected the immediate code and documentation issues while initially deferring shared reporting infrastructure and higher-resolution timing #6 #7 #9 #10.
- Thomas Munro identified the Windows incompatibility of sigaction, and after a gap Banck switched to pqsignal with signal support disabled on Windows and added a progress-option TAP test #12 #14.
Nov 2018 - Apr 2019 · 13 entries
- Fabien pressed for more suitable units and precise timing, and Banck changed the display to megabytes; this revision also introduced the independent temporary-directory return-to-continue correction #15 #17.
- Paquier urged separating SIGUSR1 support and keeping the basic feature opt-in, while Alvaro recommended compact terminal-aware newline handling; Banck's February revision retained signals, adopted the output cleanup and removed the dedicated TAP test because it did not verify progress output #19 #20 #22.
- Alvaro suggested skipping the prescan when progress was initially disabled, but Bernd Helmle caught that this broke later activation by signal; Banck restored the unconditional prescan and documented its purpose #25 #26 #27 #28 #29.
- Following Fabien's timing and arithmetic review, Banck adopted instr_time, floating-point percentages and ten updates per second to make early throughput estimates more accurate #30 #31.
- Kyotaro Horiguchi requested slower updates and better handling when progress was toggled off, and identified the temporary-directory change as an unrelated bug fix #34.
- Paquier extracted that one-line correction from #31 into 6eebfdc38b for pg_checksums and da45300486 for pg_verify_checksums, explaining that matching temporary-file and temporary-directory prefixes had masked the faulty return #35.
- Banck rebased onto the pg_checksums rename, added a newline when toggling progress off and reduced update frequency, then rebased again after checksum enable/disable support landed #36 #41.
- Fabien caught inconsistent size units and reporting arithmetic; Banck fixed those issues, reduced reporting-call frequency, cleared stale terminal text and supplied a separate ETA prototype, which remained experimental because useful time units and unstable estimates needed more work #42 #43.
- Further review corrected integer rounding and selected a 1024-block reporting cadence; Fabien then marked the patch ready and recommended splitting basic reporting from signal toggling before the release freeze, which Banck did #44 #45 #46 #47 #48 #49.
- Paquier supplied a simpler version showing only processed size, total size and percentage once per second, omitting throughput, precise timing and signal toggling; Fabien argued for retaining the richer display, but Paquier favored a small initial feature that could be extended later #51 #52 #55.
- Banck identified unnecessary reporting calls and broken redirected output in Paquier's revision; Paquier restored the caller-side guard and terminal check, removed a redundant call and provided profiling results, after which Banck reported no slowdown #53 #54 #57.
- Paquier committed 280e5f1405 from #54 after moving the prescan into the check-or-enable branch so --disable --progress would not scan the data directory #58.
- The thread ended with basic progress reporting landed and signal toggling, throughput and ETA left out; discussion shifted toward future online verification and throttling, while retaining conservative documentation for enabling checksums across replicated deployments #60 #61 #62 #63 #64 #65.