model-writtenrun 7124 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
Jun 2023 · 2 entries
- Robert Haas restarted incremental-backup work with WAL summaries identifying changed blocks, manifest-based incremental pg_basebackup, pg_combinebackup reconstruction, and a debugging utility, while identifying summary boundaries, missing files, and testing as open problems #1.
- Dilip Kumar's idea of recording checkpoint redo points directly in WAL gained Andres Freund's support, and its implementation was pursued separately in thread #48005, linked from this discussion #1 #2 #6.
Aug 2023 - Jan 2024 · 28 entries
- After a summer gap, Robert returned with experimental tests, but physical comparisons failed because replay does not reproduce every byte; David Steele confirmed this limitation, and Robert ultimately adopted logical pg_dump comparisons #9 #10 #19.
- Dilip reviewed allocation and unused-code problems, while Jakub Wartak supplied successful backup-and-restore tests; Robert incorporated their findings and committed the two unchanged basebackup.c helper extractions from #9 as 053183138a and c2ba3fdea5 #14 #15 #17.
- Robert added working logical-comparison tests and documentation, then expanded the backup and restore guidance while preparing further refactors for independent commitment #19 #20.
- The redo-marker implementation from #544753 in thread #48005 landed with an additional WAL page-magic bump as afd12774ae, allowing the backup series here to simplify its summary-boundary handling when reposted #26.
- Following David's review, the filename-parser and tablespace-OID patches from #20 landed unchanged as 5c47c6546c and 5b36e8f078, and Robert resent the remainder #21 #24 #26.
- David questioned the operational priorities and restore costs but said he would not block the feature; his concrete request to separate summarization from backup produced the split series and additional integrity, manifest, and timeline tests #24 #27 #35.
- Peter Eisentraut advocated disabling summarization by default and allowing retention slack beyond a week, while Robert argued that backup-aware deletion could ultimately require external management #29 #30.
- Andrew Dunstan supplied a separate incremental JSON parser, but its roughly fifty-percent parsing slowdown prompted discussion of retaining the existing recursive-descent parser for ordinary use; this work was not incorporated into the backup series shown here #31 #34 #38.
- Robert proposed one summary per checkpoint after studying memory consumption, and Andres's many-relation stress test supported dropping wal_summarize_mb; Robert also explained that FSM forks would be copied fully, addressing Matthias's correctness concern without adding per-access-method infrastructure #40 #43 #4 #41.
- The next revision introduced the off-by-default summarize_wal switch, ten-day retention, minimal-WAL restrictions, and fixes for timelines, truncations, and zero-filled reconstruction, with a separate testing-only patch enabling summarization across the test suite #47.
- Dilip and Alvaro reviewed the next versions in detail, and the independently useful checksum-selection patch from #51 landed unchanged as 025584a168 after their explicit endorsements #48 #54.
- Alvaro's review led to callback renaming, hash-key initialization, interrupt and interface cleanup, and an NLS fixup; Robert incorporated the NLS attachment and, with Jakub's help, fixed block-range bugs exposed by unusually small relation segments #49 #56 #64 #65.
- Thomas Munro traced Windows failures to a checksum-bypassing copy path and identified a separate xlogreader sanitizer problem, clearing important testing obstacles #70 #71.
- To avoid transferring entire manifests, Robert changed the protocol to send WAL ranges and moved manifest loading into shared frontend code in #73, following discussion with Jakub and Alvaro #66 #68.
- Jakub's standby testing exposed a missing-file reconstruction failure: files created after the backup's start could be sent incrementally despite having no earlier full copy, so Robert restored UPLOAD_MANIFEST and documented why the previous file list was necessary #74 #75.
- The two callback-renaming patches from #73 landed unchanged as d463aa06a9 and 278eb13c48, while the remaining series replaced the absolute sixty-second deadline with progress warnings and a timeout only when summarization stopped advancing #75.
- Further standby tests confirmed the new waiting behavior but exposed a progress-state assertion, leading Robert to reset pending_lsn when restarting summarization after an error #76 #81.
- Jakub's larger workload then revealed that noninitial relation segments were always backed up fully, while Peter supplied NLS/build fixups and option-documentation review; Robert combined these corrections in #90 #84 #85 #87.
- The one-line relation-segment parser fix and manifest relocation from #90 landed as 47f01d727e and aafc07c7a1, leaving the main feature ready for final testing #91.
- Jakub reported successful reconstruction of fourteen chained incrementals and dramatically smaller backups after the segment fix; the final series then landed as the lightly adjusted WAL summarizer 174c480508 and unchanged incremental-backup component dc21234005 from #91 #92.
- Robert dropped the testing-only patch and reposted pg_walsummary with a basic test, explicitly leaving further work on that utility; incremental JSON parsing and earlier system-identifier validation also remained future work in this thread #93 #73 #91.
- Alexander Lakhin found numerous spelling errors and supplied #96, which Robert committed with additional off-list corrections and a catalog-version bump as 49f2194ed5 #94 #97.
- Alexander separately identified a copied, irrelevant summary-removal comment, which Robert replaced directly from discussion in ffc6ab9b56 #94 #95.
- Alexander's compiler and static-analysis reports prompted Robert's timeout and signed-I/O fixup, and Alexander's follow-up caught reversed timestamp arguments in that proposed correction #96 #97 #98.
- Nathan Bossart supplied an initialization that silenced a compiler warning; Robert committed it unchanged as da083b20f6, also acknowledging Andrew's independent off-list report #99 #100.
- Nathan then noticed the missing WALSummarizerLock wait-event description, which Robert added from discussion as 5c430f9dc5 #101 #102.
- Robert committed the timeout portion of #97, together with Alexander's timestamp correction, as dffde5bf16; the signed-I/O changes were omitted because Tom had already fixed them separately #103.
- At the final message, the core feature and follow-up fixes had landed, but this thread still showed no disposition of the remaining pg_walsummary submission, and Michael Banck raised an unanswered usability question about tar-format incremental backups that pg_combinebackup could not consume directly #93 #106.
Apr 2024 · 1 entry
- Months later, Thom Brown questioned the tablespace-mapping documentation for tablespaces created after the full backup, and Robert confirmed that the issue had already been fixed following Tomas Vondra's report #104 #105.