Jan 2025

3 commits
Get rid of our dependency on type "long" for memory size calculations.
31 Jan 2025Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 98% surepart of a posted patchsetmoderate changesfrom patchset #110 of 1 reviewer saw the final version

041e8b95b8 lands the main memory-limit portion of #11, with stack-depth changes committed separately. Tom Lane additionally makes tbm_calculate_entries() return int, makes the planner's maxentries double, revises execUtils.c arithmetic, and extends the conversion cleanup to additional sites, consistent with #12.

  • David Rowleysaw an earlier versionLLM analysis, 99% sureDavid rejected the RI_Initial_Check() workaround and advocated fixing work_mem alongside maintenance_work_mem in #4, then proposed context-appropriate Size arithmetic in #6, before substantial expansion and revisions followed.
Use "ssize_t" not "long" in max_stack_depth-related code.
30 Jan 2025Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #11

b9d232b9de explicitly identifies itself as extracted from Vladlen's larger patch, matching the stack-depth portion of #11. It replaces the proposed Size with signed ssize_t and extends the conversion through stack checking, get_stack_depth_rlimit(), guc.c, and miscadmin.h.

Avoid integer overflow while testing wal_skip_threshold condition.
30 Jan 2025Tom Lanemaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1REL_17_STABLE17.3REL_16_STABLE16.7REL_15_STABLE15.11REL_14_STABLE14.16REL_13_STABLE13.19
LLM analysis, 100% surewritten from the discussion, no matching patch

49a38238e2 says Tom Lane discovered the overflow while investigating the proposed MAX_KILOBYTES change. Its src/backend/catalog/storage.c changes widen total_blocks to uint64 and rearrange the wal_skip_threshold comparison; none of the attached patchsets edits that file.

Credits across 3 commits

Author
Vladlen Popolitov2
Tom Lane1
Co author
Tom Lane1
Committer
Tom Lane3