model-writtenrun 951 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported two cases where remove_useless_groupby_columns() silently lost rows because a unique index used different equality semantics from GROUP BY, involving collations and operator families #1.
- Richard's attached patch required each unique-index key to match a GROUP BY item with compatible operator-family and collation semantics, and added regression tests for both failures #1.
- With the stable-branch code freeze approaching, Richard announced plans to commit and backpatch the fix #2.
- Ayush Tiwari approved the approach, checked its consistency with existing uniqueness proofs, and reported that the patch applied and tests passed #3.
- Richard committed the patch unchanged apart from rebase offsets as a1b754558a and confirmed backpatching to v18; he explained that earlier releases used only primary keys with default operator classes and declared collations, leaving neither mismatch possible and no outstanding work in the thread #4.