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

From: Zhihong Yu <zyu(at)yugabyte(dot)com>
To: Alexander Korotkov <aekorotkov(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, 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:21:14
Message-ID: CALNJ-vSvfzm=cjgqwOxK7K-YqFnfC5-om7=QRF7B=4tDNqvgeg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Sun, May 2, 2021 at 11:12 AM Alexander Korotkov <aekorotkov(at)gmail(dot)com>
wrote:

> On Sun, May 2, 2021 at 9:06 PM Zhihong Yu <zyu(at)yugabyte(dot)com> wrote:
> > + /* Everything is quotes is processed as a single
> token */
> >
> > is quotes -> in quotes
> >
> > + /* iterate to the closing quotes or end of the
> string*/
> >
> > closing quotes -> closing quote
> >
> > + /* or else ƒtsvector() will raise an error */
> >
> > The character before tsvector() seems to be special.
>
> Thank you for catching. Fixed in v3.
>
> ------
> Regards,
> Alexander Korotkov
>

Hi,
One minor comment:
+ /* iterate to the closing quotes or end of the string*/

closing quotes -> closing quote

Cheers

In response to

Responses

Browse pgsql-bugs by date

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

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-05-02 18:37:56 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()
Previous Message Alexander Korotkov 2021-05-02 18:19:26 Re: websearch_to_tsquery() returns queries that don't match to_tsvector()