Dec 2025

2 commits
Remove useless casting to same type
2 Dec 2025Peter Eisentrautmaster19beta1REL_19_STABLE19beta1
LLM analysis, 98% surepart of a posted patchsetlight changesfrom patchset #13 of 3 reviewers saw the final version

The commit carries the cleanup from #1 except for two hash_xlog_split_allocate_page() hunks superseded by 35988b31db. Remaining edits are cosmetic: retaining &out[0] in contrib/btree_gist/btree_utils_num.c and joining shortened lines in jsonfuncs.c and ECPG execute.c, as explained in #15.

  • Nathan Bossartsaw the final versiontrailerNathan supported the cleanup and asked for examples of deliberately excluded casts #2; only light changes followed in this commit.
  • Jacob Championsaw the final versiontrailerJacob examined variadic-call casts, pointer arithmetic, and character indexing #3, then accepted the cleanup after the hash simplification resolved his pointer-arithmetic concern #13.
  • Peter Eisentrautsaw the final versiontrailerPeter supported relying on format warnings #8, supplied the separate hash simplification #7, and committed the cleanup with cosmetic adjustments #15.
Simplify hash_xlog_split_allocate_page()
2 Dec 2025Peter Eisentrautmaster19beta1REL_19_STABLE19beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #112 of 2 reviewers saw the final version

The committed src/backend/access/hash/hash_xlog.c implementation matches the shared uint32 array and incrementing index in #11. It adds only spacing and a comment explaining that XLogRecGetBlockData() returns a MAXALIGNed buffer, following Bertrand's suggestion #12.

  • Bertrand Drouvotsaw the final versiontrailerBertrand caught the simultaneous-flags problem in the first version #10, then approved the revision and suggested documenting its alignment guarantee #12.
  • Jacob Championsaw the final versiontrailerJacob explicitly said the second version looked good #14, after explaining that Peter's simplification resolved his pointer-arithmetic concern #13.

Credits across 2 commits

Author
Bertrand Drouvot1
Peter EisentrautLLM1
Reviewer
Jacob Champion2
Bertrand Drouvot1
Nathan Bossart1
Peter Eisentraut1
Committer
Peter Eisentraut2

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