Mar 2024

2 commits
Fix overflow in Windows replacement pg_pread/pg_pwrite.
2 Mar 2024Thomas Munromaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 99% suremodified before commitlight changesfrom patchset #31 of 1 reviewer saw the final version

The commit matches the complete Windows patch in #3, except that both comments now say only 'Avoid overflowing DWORD'; the 1GB caps in src/port/win32pread.c and src/port/win32pwrite.c are unchanged. The revised rationale follows the discussion in #4 and #5.

  • Peter Eisentrautsaw the final versiontrailerPeter questioned both overflow rationales in #4 and accepted the Windows cap in #6 after Thomas explained the zero-length truncation hazard.
Return ssize_t in fd.c I/O functions.
1 Mar 2024Thomas Munromaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #31 of 1 reviewer saw the final version

The diff exactly matches the complete fd.c patch in #3, changing FileReadV/FileWriteV return types and result variables, plus declarations and inline wrappers in src/include/storage/fd.h, to ssize_t.

  • Peter Eisentrautsaw the final versiontrailerPeter explicitly said the fd.c return-type patch looked correct in #4.

Dec 2023

1 commit
Fix incorrect data type choices in some read and write calls.
27 Dec 2023Tom Lanemaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #11 of 1 reviewer saw the final version

The diff exactly matches #1 across all three files, including signed result variables in reconstruct.c, ssize_t results in xlog.c and basebackup.c, and corrected diagnostic formats.

  • Thomas Munrosaw the final versionLLM analysis, 94% sureBefore the commit, Thomas endorsed the type corrections and explicitly agreed that int results remain acceptable when callers know their requested sizes fit in int in #2.

Credits across 3 commits

Author
Thomas MunroLLM2
Tom LaneLLM1
Reviewer
Peter Eisentraut2
Reported by
Tom Lane1
Committer
Thomas Munro2
Tom Lane1

N LLM means N of the credits come from LLM analysis, not from commit trailers.