Re: websearch_to_tsquery() returns queries that don't match to_tsvector()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Valentin Gatien-Baron <valentin(dot)gatienbaron(at)gmail(dot)com>, Teodor Sigaev <teodor(at)postgrespro(dot)ru>, Oleg Bartunov <obartunov(at)postgrespro(dot)ru>
Subject: Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Date: 2021-05-02 18:37:56
Message-ID: 3714272.1619980676@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Alexander Korotkov <aekorotkov(at)gmail(dot)com> writes:
> On Sun, May 2, 2021 at 9:04 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> - state.in_quotes = false;
>>
>> This change seems wrong/unsafe too.

> It seems OK, because this patch removes in_quotes field altogether.

Oh, sorry, I misread the patch --- I thought that earlier hunk
was removing a local variable. Agreed, if you can do without this
state field altogether, that's fine.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexander Korotkov 2021-05-02 18:41:14 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Previous Message Tom Lane 2021-05-02 18:33:49 Re: BUG #16990: Random PANIC in qemu user context

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2021-05-02 18:41:14 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Previous Message Zhihong Yu 2021-05-02 18:21:14 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()