Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function
Date
Msg-id CAKFQuwa2v2F9spFbJgnDey9pNtk-R3TOOAJ1VU6fGTD5=Mm4DQ@mail.gmail.com
Whole thread Raw
In response to BUG #17125: Operator precedence bug in websearch_to_tsquery function  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function
List pgsql-bugs
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.



David J.

pgsql-bugs by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: The case when AsyncAppend exists also in the qual of Async ForeignScan
Next
From: Tom Lane
Date:
Subject: Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function