model-writtenrun 2948 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amul Sul proposed verifying tar and compressed-tar backups directly against backup manifests in #1, reusing pg_basebackup's streamers through a rename and move to fe_utils, with format and compression options and automatic detection.
- Sravan Kumar caught unnecessary include movement in #2, which Amul corrected in #3; Robert Haas then endorsed infrastructure reuse but requested consistent build dependencies, context-held options, safer NULL handling, and clearer checksum boundaries in #4.
- Amul revised those foundations in #5 and #8, while Andres Freund confirmed the Meson approach in #7; checksum finalization and control-file checks were separated more carefully, and #9 attempted to repair tar progress reporting.
- Robert committed the first three components of #9 as 3c90569811, 53b2c921a0, and f80b09bac8, reporting in #10 that only the rename needed additional pgindent formatting.
- Robert supplied archive-streamer comment improvements in #10, Amul reviewed and forwarded them with a typo fix in #11, and Robert landed that component with minor additional wording changes as 22b4a1b561.
- Robert questioned the compression option, allocation churn, unexpected-file handling, and progress semantics in #12, leading #13 to remove --compress, recognize compression independently for each archive, support .tgz, and reuse checksum contexts.
- Robert rejected changing plain-backup progress behavior in #14 and proposed counting archive bytes in #16; Amul adopted a two-pass scan-and-verify design in #17, abandoned the earlier progress refactoring, and added pointer-list cleanup support.
- Robert's detailed review in #18 exposed inappropriate sharing between plain and tar paths and confused chunk-versus-member completion handling; #19 separated file handling and moved final checksum and control-data validation to archive-member trailers.
- Robert extracted two more preparatory components from #19 as af99d44a88 and aa2d6b15d6, changing a comment and retaining READ_CHUNK_SIZE in pg_verifybackup.c, as recorded in #21.
- The remaining series in #23 incorporated Robert's requests from #22 to recognize pg_wal through the general archive-name parser and clarify documentation, while tar WAL verification remained unavailable and required --no-parse-wal.
- Robert demonstrated that repacked archives with ./ prefixes failed verification and requested negative tests in #25; Amul expanded corruption and checksum-algorithm coverage and introduced a separate tar-backup directory scanner in #26.
- Reviews in #27 and #28 tightened tablespace ignore handling, removed unused deep-list cleanup, improved diagnostics, and requested broader portable tests; Robert accepted applying the ignore list to both archive files and archive members, and Amul incorporated the revisions in #29.
- Robert substantially revised and consolidated the remaining work in #30, canonicalizing archive paths, using aligned ControlFileData storage, checking the full control-file length, removing several small shared helpers, improving archive-specific diagnostics, and rewriting corruption tests.
- Amul approved the revised implementation with minor comments in #31, and Robert declined to split pointer-list cleanup into a separate commit in #32; the feature subsequently landed as 8dfd312902, identified as the introducing commit by fc1b2ce0ee.
- Tom Lane reported 32-bit format-string failures and questioned using size_t for manifest file sizes in #33, then forwarded Coverity findings about a buffer leak, control-data copying, and a missing error return in #34.
- Robert supplied the three Coverity fixes in #36; after discussing the cost of changing the entire streamer length interface in #40, he accepted Tom's narrower unsigned-arithmetic adjustment from #42 and committed the combined fix as fc1b2ce0ee.
- Tom recommended uint64, strtou64, and portable translatable formatting in #37 and #41; Robert's cross-module patch in #44 passed Tom's reported testing in #47 and landed unchanged as d94cf5ca7f.
- A further buildfarm failure reported in #49 revealed an overlooked backend manifest callback; Tom corrected its signature and stored size type without an attached patch in 554d3a18f3, acknowledging incomplete earlier test coverage in #50.
- The thread closes with Robert thanking Tom for the callback fix in #51; tar verification and the reported follow-up fixes have landed, while WAL verification inside tar archives remains outside the implemented feature.