model-writtenrun 840 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jeff Davis proposed removing the synonym dictionary's cached output length in #1, because lowercasing can increase a string's byte length and cause pnstrdup() to truncate it; the NUL-terminated output permits using pstrdup() instead.
- Tristan Partin endorsed the fix in #2 and asked how to add regression coverage through SQL.
- Jeff demonstrated the bug and corrected output using a specially crafted synonym file in #3, but favored committing the backpatchable fix without adding a broader collection of adversarial Unicode dictionary tests.
- Tristan offered to supply tests in a subsequent discussion in #4, and Jeff agreed in #5, leaving additional test coverage for follow-up.
- Jeff committed #1 without code changes as 89e6484985, credited Tristan's review, and backpatched the fix through PostgreSQL 14.