model-writtenrun 4900 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Arne Roland reported that partitioned-table index information was unavailable when the planner checked join uniqueness in #1, then abandoned changing inheritance-expansion timing and proposed a separate RelOptInfo.partIndexlist in #2.
- After an application failure exposed accidental pg_indent changes, Arne removed the unrelated edits in #4 and corrected an inverted system-catalog condition using Zhihong Yu's feedback in #5.
- Julien Rouhaud reported changed regression plans in #8; Alvaro Herrera judged the join removals valid but requested clearer test coverage in #9, and Arne explained that the optimization also covered joins between different tables before revising the tests in #10 and #11.
- Zhihong Yu questioned the index-filter comment in #12, while Amit Langote proposed clearer naming and asked why partitioned indexes could not use the existing indexlist in #15; Arne adopted the naming changes but initially retained separate storage because of concerns about consumers expecting physical indexes in #16.
- After a six-month gap, Arne rebased the separate-list patch in #17, and David Rowley supplied a major replacement in #18 that populated indexlist directly, skipped unavailable access-method information, and guarded get_actual_variable_range against partitioned tables.
- Alvaro accepted revisiting the earlier exclusion of partitioned indexes in #19; Tom Lane questioned the need and consumer-side complications in #20, and David explained that unique proofs for left-join removal justified the change in #21.
- Amit requested clearer comments and a direct join-removal test in #22; David explained why fractional-path tests had to retain their joins in #23, and Arne adopted the shared-list design, audited indexlist consumers, and added broader join.sql coverage in #25.
- David requested narrower tests, clearer comments, and moving the partitioned-index size safeguard out of bufmgr.c in #26; Tom explained that inherited test tables must survive for later dump/restore testing in #27.
- Arne revised documentation, restored the buffer-manager assertion, removed the inherited-table drop, and reduced the tests in #28, also preserving fractional-path coverage by explicitly selecting columns from both sides of the join.
- Andres Freund reported an assertion failure caused by requesting the physical size of a partitioned index in #29, and Arne guarded index-size and B-tree-height calculations in #30.
- David committed #30 as 3c569049b7, retaining the implementation with light cleanup and replacing the expanded regression cases with one focused join-removal test.
- The thread ends with David confirming the commit in #31, explaining that partitioned tables share the existing join-removal and unique-join logic, so extensive duplicate tests and a separate unique-join test were unnecessary; no patch remains pending.