Oct 2026

1 commit
Fix tuplesort memory accounting for datum sorts on byref types
5 Oct 2026David RowleymasterunreleasedREL_19_STABLE19rc1REL_18_STABLE18.7REL_17_STABLE17.12
LLM analysis, 100% surelanded as postedfrom patchset #12 of 2 reviewers saw the final version

85adc584e2 has an identical diff to #1: all three hunks in src/backend/utils/sort/tuplesortvariants.c match, including datumGetSize() for bump contexts and GetMemoryChunkSpace() otherwise.

  • David Rowleysaw the final versiontrailerDavid investigated the potential extra strlen() overhead and found no issues in #2, then committed the unchanged patch as confirmed in #6.
  • Joao Detominisaw the final versiontrailerJoao reported passing regression tests, reproduced both examples, verified spilling through additional aggregate callers, and expressed no concerns about the patch in #3.

Credits across 1 commit

Author
Mario Karuza1
Reviewer
David Rowley1
Joao Detomini1
Committer
David Rowley1