model-writtenrun 5100 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed t_isalnum() to avoid duplicate character conversion and classification in pg_trgm, ltree and core code, explaining that its semantics match separate alpha-or-digit tests; his patch also removed redundant ltree character-length checks #1.
- Tom committed the t_isalnum() implementation and caller conversions as ca71131eeb, splitting that portion from the combined patch #1.
- Tom committed the remaining ltree cleanup as 58640f37d9, noting that rejecting multibyte characters previously ignored as whitespace also fixes a likely bug, but declining to backpatch because it tightens accepted ltxtquery syntax.
- After both commits had landed, Corey Huinker asked why the character-classification functions retained unexplained TODO comments #2; this post-commit question supplies no qualifying review coverage.
- Tom explained that these functions should honor the calling SQL operation's locale or collation instead of hard-wiring the database default, leaving that larger follow-up unimplemented while the submitted patch was fully committed #3.