model-writtenrun 8281 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Gilman opened the thread with a warning and documentation patch for parallel restores of custom archives lacking data offsets #1.
- Justin Pryzby proposed making restores succeed by rewinding seekable input instead of merely warning #3, while Tom Lane suggested investigating a different parallel scheduling algorithm #5.
- David explained how restore scheduling exposed out-of-order requests and supplied a working rewind-based fix following Justin's suggestion #6.
- David added integration tests and a tar cleanup #7; Justin tested the patch, identified potentially quadratic rescanning, suggested rewinding only at EOF, and questioned adding a test-only command-line option #8.
- David implemented EOF wraparound and expanded parallel tests #9, added seek-based skipping to avoid rereading entire tables #10, and consolidated retry handling after further review #11.
- Justin supplied a pipeline-based testing approach and reported intermittent test failures #12; David subsequently removed the test-only option but warned that unrelated bugs still made the tests unsuitable for merging #14.
- Tom withdrew his concern about unseekable input and rewrote the fix to remember encountered block offsets, eliminating repeated rewinds; he also folded in seek-based skipping, removed the obsolete warning, and rejected the tar cleanup because that state could support future out-of-order tar restores #15.
- Tom retained David's tests temporarily for CI but questioned their runtime and coverage #15; subsequent manual regression-database testing exposed unreliable file-position tracking that those tests missed #16.
- Tom split out removal of manual file-position tracking, added a furthest-scanned position to bound repeated searching, and proposed committing without new tests until other restore bugs were resolved #16.
- The preparatory cleanup landed unchanged as a8d0732ac2, and the restore fix from #16 landed with additional documentation edits as f009591d6e.
- Tom confirmed both changes were pushed back through PostgreSQL 12 #17; the restore fix was complete, while broader automated restore testing remained deferred as explained in #16.