pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Further cleanup of ts_headline code.
Date: Thu, 09 Apr 2020 19:39:28 +0000
Message-ID: <E1jMd1M-0001Wd-0Q@gemulon.postgresql.org> (raw)

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
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c2599b93df0a94cd7d7b042c1bdd2eb6447ead92

Modified Files
--------------
src/backend/tsearch/wparser_def.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)



view thread (5+ messages)

Message-ID: <E1jMd1M-0001Wd-0Q@gemulon.postgresql.org>
Permalink:  ../E1jMd1M-0001Wd-0Q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jMd1M-0001Wd-0Q@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Further cleanup of ts_headline code.
  In-Reply-To: <E1jMd1M-0001Wd-0Q@gemulon.postgresql.org>
  References: <E1jMd1M-0001Wd-0Q@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox