]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Further cleanup of ts_headline code.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Apr 2020 19:38:43 +0000 (15:38 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 9 Apr 2020 19:38:43 +0000 (15:38 -0400)
commit2e0e409e3cbab4f4ac01a6f70931817cfd2bdcb1
tree4b9b9a78fc24ff807919d9d988de1cd27e30cce0
parenta4d4f59196ea8745fe4c048085d6d2bd66e8e7d8
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/16345-2e0cf5cddbdcd3b4@postgresql.org
src/backend/tsearch/wparser_def.c