model-writtenrun 8845 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Japin Li proposed eliminating redundant code in build_regexp_split_result() and supplied a patch in #1.
- The patch in #1 moves the endpos assignment and validation ahead of the buffer conditional so both branches share them.
- Tom Lane committed that patch with additional cleanup as 0db7c67051.
- The additional edits in 0db7c67051 replace assertion-only local variables with direct structure-field references in both result-building functions and clarify a buffer comment.
- Tom Lane confirmed the push and explained the additional simplification in #2, leaving the proposed cleanup fully committed.