model-writtenrun 4914 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis demonstrated that hashbpcharextended() produced different hashes for bpchar values differing only in trailing spaces under a nondeterministic collation, supplied a one-line fix, and initially favored backpatching #1.
- Richard Guo confirmed the oversight by comparing hashbpchar's correct handling of trailing blanks and also favored backpatching #2.
- Jeff then demonstrated that bpchar columns without a typmod could place otherwise equal values into different hash partitions, correcting his initial assessment that partitioning was unaffected #3.
- Jeff decided against backpatching because changing partition assignments could make existing dumps unrestorable with default options, while the affected combination involved a type undocumented before PostgreSQL 16 #4.
- Tom Lane supported that decision and asked about hash indexes; Jeff clarified that they use the unaffected hashbpchar function #5 #6.
- The original code fix landed unchanged in 7ac0f8d384, with the commit message documenting the partitioning consequences and the decision against backpatching; no further patch work remained in this thread.