model-writtenrun 8632 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Augustinas Jokubauskas reported that ts_headline returned only the highlighted word Lorem when a combined term-and-phrase query required a much longer matching fragment #1.
- Tom Lane traced the failure to hlCover() assuming that word positions did not matter, and submitted six patches after discovering that a more exhaustive cover search also exposed faulty headline-selection heuristics #2.
- The proposal preserved query terms as valid endpoints regardless of length, corrected trimming and premature rejection, and prioritized headlines containing their complete cover; Tom accepted changed regression results that included more query words and left possible NOT-handling improvements unexplored #2.
- Tom first committed an expanded version of the submission's cosmetic cleanup, adding boolean flags, further documentation, and reuse of mark_fragment() #2 b10f8bb9fd.
- The remaining submitted tests and behavioral fixes landed together, replacing hlCover() with a search over query-word endpoints and fixing headline ranking; the commit resolved the backpatch question in favor of PostgreSQL 9.6 onward #2 c9b0c678d3.
- After those commits, Jeff Janes reported a compiler warning that pose might be uninitialized, with and without assertions enabled #3; this was a new bug report rather than a review of the subsequent fix.
- Tom reproduced the warning with another compiler and promised a correction in the final thread message #4; the subsequent cleanup initialized pose and also corrected detection of enclosing, overlapping covers, completing the submitted work and this follow-up 2e0e409e3c.