From: Tom Lane <tgl@sss.pgh.pa.us>
To: cyloz28@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17917: to_tsquery syntax error
Date: Wed, 03 May 2023 09:46:13 -0400
Message-ID: <2957538.1683121573@sss.pgh.pa.us> (raw)
In-Reply-To: <17917-f156da20f2590412@postgresql.org>
References: <17917-f156da20f2590412@postgresql.org>
PG Bug reporting form <noreply@postgresql.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
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, cyloz28@gmail.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17917: to_tsquery syntax error
In-Reply-To: <2957538.1683121573@sss.pgh.pa.us>
* 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