model-writtenrun 6345 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
May - Jul 2021 ยท 16 entries
- Bharath Rupireddy began with a patch consolidating repeated subscription-option error reports into shared ereport calls using local option strings #1, and Amul Sul requested preservation of translator comments #2.
- Amit Kapila redirected the work toward replacing the parser's fourteen parameters with a structure to support future subscription options #4, while leaving publication-option parsing alone because its interface was still small #6; Bharath implemented the expanded proposal in #8.
- Peter Smith tested the initial structure-based implementation and questioned its readability, heap allocation, and pointer indirection #9, then proposed storing values directly and representing which options were allowed separately #10.
- Bharath proposed bitmap-based option tracking #11, Michael Paquier recommended the existing fixed-width bitmap convention #12, and Alvaro Herrera explained why explicit bit values avoid enum-related problems and why the width could grow later #14 #18; the resulting implementation appeared in #20.
- Peter's successful tests and review of the bitmap implementation led to combining the nested structures, keeping their definitions private to subscriptioncmds.c, and simplifying bit checks #21, which Bharath incorporated in #24.
- Peter supported the parser refactor but preferred the existing explicit error reports, asking that the two changes be separated #26; Bharath split the series accordingly and also refined the bit-test macro and AlterSubscription variable handling #27.
- Peter questioned the old connect-option assertion and again reported successful tests #28, while Michael explained its original Coverity null-pointer purpose #30; Bharath removed the assertion in #31.
- After rebases #34 #35, Amit reopened review of the structure's input/output responsibilities, requested an equivalent assertion, and identified an obsolete function comment #36; Bharath initially changed only the comment #37.
- Alvaro proposed making SubOpts an output structure with supported_opts passed separately #38, and Amit supported that separation and retaining the assertion #39 #40; Bharath implemented both changes while retaining the existing names and IsSet macro #41 #42.
- Amit prepared the main refactor for commit with comment, initialization, macro, and formatting edits, while deferring the error-reporting patch because its benefit remained unclear #43.
- Alvaro supplied a cleanup delta removing SUBOPT_NONE, unnecessary temporary variables, and verbose option-mask setup #46; Bharath folded it into the final full patch #47, which Amit and Alvaro accepted #48 #49.
- Amit committed #47 unchanged as 8aafb02616, introducing SubOpts and bitmap-based option tracking, and announced the push in #51.
- Bharath reposted the remaining error-report consolidation against the committed refactor #52, but Alvaro judged that it provided too little simplification #53.
- After studying the committed refactor while adapting other work, Peter supplied a tested follow-up that initialized SubOpts inside the parser and removed redundant option checks #54.
- Alvaro defended caller-side initialization while acknowledging some redundant checks #55, Bharath withdrew the original error-reporting cleanup for lack of support #56, and Amit recommended discussing Peter's proposed improvements separately #57.
- Peter moved the follow-up improvements to a new thread #59, and Bharath closed the CommitFest entry #60, leaving this thread complete with the parser refactor landed, the error-reporting cleanup withdrawn, and the later improvements transferred elsewhere.