model-writtenrun 1798 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley proposed replacing bms_union() with bms_add_members() at three call sites to avoid unnecessary bitmapset allocations, while asking whether shared pointers made any replacement unsafe #1.
- Greg Burd supported the patch and suggested that REALLOCATE_BITMAPSETS testing could expose sharing mistakes #2.
- Tom Lane explained that substitute_phv_relids_walker() must preserve shared bitmapsets, explicitly approved generate_union_paths() because its set is local, and questioned whether markNullableIfNeeded() offered any benefit #3.
- Greg acknowledged overlooking the walker’s header comment and suggested an additional explanation; Tom clarified why modifying the set after bms_union() is safe, and David explained why REALLOCATE_BITMAPSETS did not establish the safety of these replacements #4 #5 #6.
- David concluded the discussion by retaining only the generate_union_paths() change and leaving both other call sites alone #7.
- The retained prepunion.c hunk from #1 landed unchanged in 5092aae431, completing the narrowed change; the commit describes an efficiency improvement and cites unfavorable risk versus reward for changing markNullableIfNeeded().