From: David G. Johnston <david.g.johnston@gmail.com>
To: tim.connolly@oovvuu.com <tim.connolly@oovvuu.com>
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function
Date: Wed, 28 Jul 2021 06:40:25 -0700
Message-ID: <CAKFQuwa2v2F9spFbJgnDey9pNtk-R3TOOAJ1VU6fGTD5=Mm4DQ@mail.gmail.com> (raw)
In-Reply-To: <17125-483838072f5f4bac@postgresql.org>
References: <17125-483838072f5f4bac@postgresql.org>
On Tuesday, July 27, 2021, PG Bug reporting form <noreply@postgresql.org>
wrote:
>
> postgres=# select websearch_to_tsquery('english', 'foo bar or baz');
> websearch_to_tsquery
> -----------------------
> 'foo' & 'bar' | 'baz'
> (1 row)
>
> Expected: 'foo' & ('bar' | 'baz')
>
>
The documentation describes the operator precedence and it isn’t what you
expect.
https://www.postgresql.org/docs/current/datatype-textsearch.html#DATATYPE-TSQUERY
David J.
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-bugs@postgresql.org
Cc: david.g.johnston@gmail.com, tim.connolly@oovvuu.com
Subject: Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function
In-Reply-To: <CAKFQuwa2v2F9spFbJgnDey9pNtk-R3TOOAJ1VU6fGTD5=Mm4DQ@mail.gmail.com>
References: <17125-483838072f5f4bac@postgresql.org> <CAKFQuwa2v2F9spFbJgnDey9pNtk-R3TOOAJ1VU6fGTD5=Mm4DQ@mail.gmail.com>
* 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