model-writtenrun 9214 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- James Inform reported that an ICU-collated primary-key column caused ILIKE to miss an uppercase value, while an unindexed column returned the expected match #1 #4.
- Daniel Verite reproduced the bug on PostgreSQL 10 and master and traced it to pattern_char_isalpha() treating ASCII letters as non-case-varying under ICU, allowing an incorrect equality index condition #2.
- Daniel supplied a temporary fix that treated every ICU character as potentially case-varying and demonstrated that it restored the missing row; Arthur Zakirov followed with a u_isalpha() implementation intended to retain useful classification #5 #6.
- After the issue missed a release cycle, Tom Lane rejected the blanket classification as unnecessarily restrictive and the u_isalpha(char) call as unsafe, supplying explicit ASCII letter checks, conservative non-ASCII handling, and regression tests #7.
- Arthur verified Tom's regression tests and the original reproducer before commit #8; Tom then landed 03c811a483 from #7 with only additional test-cleanup changes, backpatched the fix through PostgreSQL 10, and confirmed it was pushed with no further work identified #9.