Re: BUG #17917: to_tsquery syntax error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: cyloz28(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17917: to_tsquery syntax error
Date: 2023-05-03 13:46:13
Message-ID: 2957538.1683121573@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> select to_tsquery('lowercase', plainto_tsquery('lowercase', 'test')::text ||
> ':*');

> the above query runs successfully in Windows but got an error in Fedora 38:
> ERROR: syntax error in tsquery: ":*"

Works for me, after substituting a text search configuration name that
I had installed:

=# select to_tsquery('english', plainto_tsquery('english', 'test')::text ||
':*');
to_tsquery
------------
'test':*
(1 row)

I think you mistyped something in the Fedora case. The error message
is pretty clear that what to_tsquery() got was only ':*'.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2023-05-03 14:43:18 Re: BUG #17916: Expression IN list translates to unqualified operator
Previous Message RekGRpth 2023-05-03 13:42:48 Re: BUG #17916: Expression IN list translates to unqualified operator