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

From PG Bug reporting form
Subject BUG #17125: Operator precedence bug in websearch_to_tsquery function
Date
Msg-id 17125-483838072f5f4bac@postgresql.org
Whole thread Raw
Responses Re: BUG #17125: Operator precedence bug in websearch_to_tsquery function
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      17125
Logged by:          Tim Connolly
Email address:      tim.connolly@oovvuu.com
PostgreSQL version: 11.12
Operating system:   Alpine Linux
Description:

Expectation: A web-search query of 'foo bar or baz' should match documents
that contain 'foo' and 'bar', and documents that contain 'foo' and 'baz'.


postgres=# select to_tsvector('english', 'baz') @@
websearch_to_tsquery('english', 'foo bar or baz ');
 ?column?
----------
 t
(1 row)

Expected: f

postgres=# select websearch_to_tsquery('english', 'foo bar or baz');
 websearch_to_tsquery
-----------------------
 'foo' & 'bar' | 'baz'
(1 row)

Expected: 'foo' & ('bar' | 'baz')


pgsql-bugs by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: BUG #17066: Cache lookup failed when null (iso-8859-1) is passed as anycompatiblemultirange
Next
From: Orishich Aleksey
Date:
Subject: RE: Postgresql12: ERROR: Could not read from file "pg_act/02 F 4" at offset 253952: read too few bytes