Further cleanup of ts_headline code. Suppress a probably-meaningless uninitialized-variable warning (induced by my previous patch, I'm sorry to say).
Improve mark_hl_fragments()'s test for overlapping cover strings: it failed to consider the possibility that the current string is strictly within another one. That's unlikely given the preceding splitting into MaxWords fragments, but I don't think it's impossible. Discussion: https://postgr.es/m/[email protected] Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9be664d715ebcb7265c6f3e2bdba89de2b45d66c Modified Files -------------- src/backend/tsearch/wparser_def.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-)
