model-writtenrun 3269 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Manos Emmanouilidis reported that parentheses caused websearch_to_tsquery() with the German configuration to interpret an OR keyword as a literal word, and asked for consistent behavior or documentation in #1.
- Tom Lane explained that the documented behavior requires ignoring parentheses and traced the bug to ignored operator characters incorrectly moving the parser from WAITOPERATOR to WAITOPERAND in #2.
- Tom Lane attached a minimal fix that skips those characters while preserving WAITOPERATOR state in #2.
- In the final thread message, Tom Lane confirmed that other punctuation is discarded during lexizing and explained that English also exhibits the bug, but its stopword handling hides the literal OR token in #3.
- The fix subsequently landed as 5e63a6f434 from #2, with comment refinements and a regression test; it was backpatched to all supported branches, leaving no outstanding patchset.