model-writtenrun 2836 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis reported that lc_collate_is_c() mistakenly checked LC_CTYPE for the libc provider, producing wrong results when LC_CTYPE=C and LC_COLLATE used a real locale #1.
- Jeff explained that the reverse combination fell through to strcoll(), which observed LC_COLLATE, and attached a two-line correction to the locale lookup and error message #1.
- Jeff intended to commit the fix only to PostgreSQL 17 because refactoring had already eliminated the bug on master; the supplied thread ends with this submission and contains no review replies #1.
- Later that day, 8148e7124d landed the patch from #1 unchanged, credited Drew Callahan as reporter, and instructed affected users to REINDEX their indexes.