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

From: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:41:14
Message-ID: CAPpHfdvUe9jx8N-TgOwPfAFyZFOgbW83LsytR5kyUqP8OxAwYA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Sun, May 2, 2021 at 9:37 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 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.

OK, thank you for review!

------
Regards,
Alexander Korotkov

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Paul Guyot 2021-05-02 20:20:39 Re: BUG #16990: Random PANIC in qemu user context
Previous Message Tom Lane 2021-05-02 18:37:56 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()

Browse pgsql-hackers by date

  From Date Subject
Next Message Chapman Flack 2021-05-02 19:52:19 pg_upgrade not preserving comments on predefined roles
Previous Message Tom Lane 2021-05-02 18:37:56 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()