model-writtenrun 8812 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Dominik Czarnota submitted a one-line fix after showing that json_to_tsvector incorrectly accepted "strinX" as the "string" flag because only five characters were compared #1.
- The patch changed the comparison length to six; Dominik also suggested using strcasecmp for nearby comparisons to avoid explicit length arguments #1.
- Tom Lane committed the attached fix unchanged as 870ad6a59b, crediting Dominik for the report and patch #1.
- The commit deliberately omitted backpatching because correct queries were unaffected and rejecting previously accepted incorrect queries could disrupt users in a minor release 870ad6a59b.
- Tom confirmed the fix was pushed and questioned whether the input strings were guaranteed to be null-terminated, leaving the optional strcasecmp cleanup unadopted while the reported bug was fixed #2.