model-writtenrun 4889 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Antonin Houska reported that sendFileWithContent() repeatedly copied from the beginning of its input when a file exceeded the 32 kB sink buffer, corrupting tablespace_map for backups with many tablespaces #1.
- Antonin supplied a reproduction-script generator and a one-line patch advancing the content pointer after each buffer transfer #1.
- Andres Freund identified the bug as a recent regression affecting PostgreSQL 15, without reporting testing or proposing changes to the patch #2.
- Robert Haas committed the attached patch unchanged as 45f5c81ad2, crediting Antonin for the report and patch #1.
- Robert closed the thread by confirming the commit and its backpatch to PostgreSQL 15, leaving no outstanding work discussed #3.