model-writtenrun 9163 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Robert Haas reported in #1 that sendFile() silently replaced unread data with zeros after read errors, while checksum rereads incorrectly failed on concurrent truncation; genuine truncation should continue to permit zero padding.
- Jeevan Chalke supplied #2, adding ferror() checks for file and WAL reads and feof() handling for truncated checksum rereads; he reported manually testing error detection but could not reproduce the truncation case.
- Jeevan Ladhe reviewed the error-handling approach and requested clearer comments in #3; Chalke incorporated those changes in #4, and Ladhe acknowledged the revision in #5.
- Robert Haas supplied a further comment revision in #6 and requested backports through PostgreSQL 9.4; Chalke provided #7, adapting to the older WAL-size constant and omitting checksum-related changes because that code was absent.
- Robert Haas committed #6 unchanged apart from base context as 286af0ce12; the commit message deferred switching to read() for better diagnostics because that might exceed a backpatchable bug fix.
- The thread ended with Robert Haas confirming in #8 that the fix had landed on v11+ and the older-branch adaptation had also been committed, leaving no submitted patch outstanding.