| From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: BUG #16345: ts_headline does not find phrase matches correctly |
| Date: | 2020-04-09 18:39:41 |
| Message-ID: | CAMkU=1zqTNcxWzFwuRMhJpc5d_q2+j3TbFXiee4PmuGLP0LVnA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
redirected to hackers.
On Wed, Apr 8, 2020 at 11:02 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> In short then, I propose applying 0001-0006. I'm not quite sure
> if we should back-patch, or just be content to fix this in HEAD.
> But there's definitely an argument that this has been broken since
> we added phrase search (in 9.6) and deserves to be back-patched.
>
>
Thanks for fixing this.
I am getting a compiler warning, both with and without --enable-cassert.
wparser_def.c: In function 'prsd_headline':
wparser_def.c:2530:2: warning: 'pose' may be used uninitialized in this
function [-Wmaybe-uninitialized]
mark_fragment(prs, highlightall, bestb, beste);
^
wparser_def.c:2384:6: note: 'pose' was declared here
int pose,
It makes no sense to me that pose could be used uninitialized on a line
that doesn't use pose at all, so maybe it is a compiler bug or something.
PostgreSQL 13devel-c9b0c67 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu
5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609, 64-bit
Cheers,
Jeff
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2020-04-09 19:29:49 | Re: BUG #16345: ts_headline does not find phrase matches correctly |
| Previous Message | Johannes Mols | 2020-04-09 17:42:04 | Re: BUG #16351: PostgreSQL closing connection during requests with segmentation fault |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2020-04-09 18:55:47 | Re: Parallel copy |
| Previous Message | Alvaro Herrera | 2020-04-09 18:38:37 | Re: more ALTER .. DEPENDS ON EXTENSION fixes |