model-writtenrun 2654 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra reported that BufFileLoadBuffer measured the entire PGAlignedBuffer union instead of its data field, a harmless mistake because their sizes currently match, but one that confused his experimental work #1.
- Tomas supplied a one-line patch making the read length explicitly use sizeof(file->buffer.data) #1.
- Daniel Gustafsson reviewed the patch and said it looked good; the thread ended with that approval and no requested revisions #2.
- Tomas subsequently committed the patch unchanged as 38273b5f83, completing the proposed fix and backpatching through PostgreSQL 13 because PostgreSQL 12 was already end of life.