From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Further cleanup of ts_headline code. |
Date: | 2020-04-09 19:39:27 |
Message-ID: | E1jMd1L-0001WT-V5@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2e0e409e3cbab4f4ac01a6f70931817cfd2bdcb1
Modified Files
--------------
src/backend/tsearch/wparser_def.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-04-09 19:39:28 | pgsql: Further cleanup of ts_headline code. |
Previous Message | Tom Lane | 2020-04-09 19:16:24 | Re: pgsql: Fix default text search parser's ts_headline code for phrase que |