model-writtenrun 4390 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Richard Guo reported that a SIMILAR TO expression containing an escaped Malayalam digit triggered an assertion failure with ICU support in #1.
- Tom Lane identified the mistaken assumption that every alphanumeric character is either an ASCII digit or alphabetic, and proposed treating escaped non-ASCII characters literally to avoid locale-dependent regex validity in #2; Jeff Davis confirmed the ICU classification behavior and agreed on an ASCII check in #3.
- Tom proposed removing the character-classification assertion in #4; after Jeff questioned the ASCII boundary and purpose of rejecting unknown escapes in #5, Tom corrected the boundary and explained that ASCII letters should remain reserved for future escapes in #6.
- Jeff submitted explicit ASCII range checks and assertion removal in #7, and Tom accepted the patch in the thread's final message, #8.
- Jeff subsequently committed the attached patch unchanged as c04c6c5d6f, with backpatching through PostgreSQL 11; no further work was identified in the thread.