model-writtenrun 10474 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Wren reported that pg_receivewal could accept a truncated LZ4 WAL segment whose decompressed size was correct despite an incomplete frame, causing streaming to restart at the following segment, and supplied a reproduction script #1.
- Raja Sai pranav reproduced the bug and submitted a patch requiring the last LZ4F_decompress() call to report frame completion, with a TAP test that removes a segment's end marker and verifies that streaming restarts at that segment #2.
- Michael Paquier supported the check as defense in depth for externally produced segments, including those using content checksums, and considered backpatching through version 15 appropriate; adding checksums to pg_receivewal itself remained only a possible future change #3.
- Michael Paquier judged the proposed regression test useful for demonstrating the bug but unnecessary to retain because of its testing cost #3.
- Michael Paquier committed the patch with the test removed and the warning changed to "incomplete", preserving its validation logic in e87b024bfb; his final message confirmed backpatches through version 15 and explained that uncertainty about the reporter's name had prevented attribution in the commit log #4.