Oct 2026

2 commits
Detect overflows in various numerical aggregate transfns
28 Oct 2026David Rowleymasterunreleased
LLM analysis, 100% surelanded as postedfrom patchset #261 of 3 reviewers saw the final version

The complete diff exactly matches the second patch in #26, adding sum overflow checks to five functions in src/backend/utils/adt/numeric.c. Both the attachment and commit credit Andrei Lepikhov; the commit message additionally explains the master-only decision.

  • David Rowleysaw the final versiontrailerDavid proposed the compensating optimization in #15, reviewed the revision in #18, prepared the final split in #26, and committed it as confirmed in #27.
  • Tom Lanesaw an earlier versiontrailerTom reviewed #16 in #19, requesting removal of count overflow checks and tests plus comment and macro fixes; the subsequent count-check removal changed local logic.
  • Chao Lisaw an earlier versiontrailerChao questioned unchecked inverse transitions in #2 and demonstrated a direct-call overflow in #4, before the later sum null-handling optimization and count-check revisions.
Add PG_RETURN_ARG macro and use it for sum(int2) and sum(int4)
27 Oct 2026David Rowleymasterunreleased
LLM analysis, 100% surelanded as postedfrom patchset #261 of 1 reviewer saw the final version

The complete diff exactly matches the first patch in #26, including PG_RETURN_ARG in src/include/fmgr.h, simplified sum null handling, and deletion of the stale int8_sum comment. David Rowley is both the patchset sender and the credited author.

  • Tom Lanesaw the final versiontrailerTom reviewed the optimization within #16 in #19, requesting comment placement and macro formatting changes; the final optimization differs only in naming, comments, and formatting.

Credits across 2 commits

Author
Andrei Lepikhov1
David Rowley1
Reviewer
Tom Lane2
Chao Li1
David Rowley1
Committer
David Rowley2