model-writtenrun 3536 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Amul Sul proposed adding a 64-bit System-Identifier and advancing the backup manifest format to version 2 so incremental backup, pg_combinebackup, and pg_verifybackup could reject manifests from another database system earlier #1.
- Alvaro Herrera questioned whether primary and standby backups would remain interchangeable; Amul Sul reported successful testing, and Robert Haas explained that their system identifiers must match unless the standby had been altered with pg_resetwal #2 #3 #4.
- Robert Haas supported detecting wrong-server backups before restore time but requested separate version handling, stricter numeric parsing, and separation of manifest parsing from semantic validation; Sravan Velagandula reported review and testing, and Michael Paquier supported the feature #5 #6 #7.
- Amul Sul introduced separate version and system-identifier callbacks, rejected version 1 manifests for incremental operations, and then repaired pg_verifybackup's version guard so older manifests remained verifiable #8 #10.
- To avoid multiplying output parameters, Amul Sul split out a preparatory refactor making parse_manifest_file() return manifest_data, leaving the system-identifier feature as a second patch #11.
- Robert Haas identified a possible NULL-manifest dereference, unnecessary parser context, and confusing diagnostics; Amul Sul simplified those paths and moved GetSystemIdentifier() directly into manifest initialization #12 #13.
- Robert Haas argued that pg_verifybackup should inspect the control file during its directory walk to preserve missing-directory diagnostics and avoid duplicate errors; after discussing the alternatives, Amul Sul implemented that placement #14 #15 #16 #17.
- Michael Paquier requested documentation fixes, improved version validation, an init() option instead of repeatedly clearing INITDB_TEMPLATE, and cleaner control-file path handling; Amul Sul expanded the series with force_initdb and a control-file API refactor #18 #19.
- Robert Haas approved force_initdb subject to wording and identified a misplaced prerequisite hunk, while Michael Paquier requested perldoc and warned that silently changing get_controlfile() semantics could break extensions; Amul Sul revised the documentation and patch split but initially retained the API change #20 #21 #22.
- Michael Paquier committed the force_initdb component from #22 with documentation and formatting edits as ff9e1e764f, allowing tests to request genuinely distinct cluster identifiers #23.
- Michael Paquier questioned whether the control-file API refactor was necessary because both callers already had backup-directory paths, so Amul Sul dropped that component and resent the remaining verifier refactor and manifest feature #24 #26.
- Robert Haas committed the unchanged verifier-refactor component of #26 as dc8f2d7c06, while reporting a missing GetSystemIdentifier() declaration and objecting to repeated control-file path construction in the remaining feature #27.
- Robert Haas revived the helper with a compatibility-preserving design: get_controlfile() retained its existing meaning and get_controlfile_by_exact_path() accepted a complete path; Michael Paquier endorsed this approach, and a shorter-name suggestion did not change it #28 #29 #30 #31.
- Robert Haas combined the remaining manifest feature with that helper, added the missing header, improved documentation, and removed the special requirement that System-Identifier immediately follow the version field together with the tests enforcing it #32.
- Amul Sul supplied a final delta passing the existing full path and system identifier directly to verify_control_file(); Robert Haas incorporated it, ran pgindent, and adjusted TAP failure handling before committing the manifest-feature component as 2041bc4276 #33 #34.
- The thread ended with acknowledgments after the commit announcement, with no remaining review request or unresolved objection recorded #35 #36.