model-writtenrun 3224 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley questioned why BufFileSize() required a fileset when its implementation did not use that field, then submitted a patch removing the assertion because checking file->files instead would add no value #1 #2.
- Peter Geoghegan pointed out that the documented function contract also restricted BufFileSize() to fileset-backed files and requested a corresponding comment update #3.
- David explained that proposed EXPLAIN output for Material nodes needed the size of a tuplestore's BufFile without a fileset, triggering the assertion, and identified similarly unjustified assertions in BufFileAppend() #4.
- David's revised patch updated the comments and removed the BufFileAppend() assertions as well; Matthias van de Meent approved it, and Tom Lane approved it subject to clearer wording describing the amount of data returned by BufFileSize() #5 #6 #7.
- David committed the revised patch with Tom's wording and another small comment edit as 4331a11c62, then confirmed it was pushed in the final message #8; the commit deferred backpatching because existing in-tree callers could not trigger the assertions.