Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puCoF-0001Ui-L1 for pgsql-bugs@arkaria.postgresql.org; Wed, 03 May 2023 13:46:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puCoE-0000WK-GB for pgsql-bugs@arkaria.postgresql.org; Wed, 03 May 2023 13:46:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puCoE-0000WB-8E for pgsql-bugs@lists.postgresql.org; Wed, 03 May 2023 13:46:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1puCoB-000LtH-OD for pgsql-bugs@lists.postgresql.org; Wed, 03 May 2023 13:46:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 343DkDeq2957539; Wed, 3 May 2023 09:46:13 -0400 From: Tom Lane To: cyloz28@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17917: to_tsquery syntax error In-reply-to: <17917-f156da20f2590412@postgresql.org> References: <17917-f156da20f2590412@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 03 May 2023 10:01:21 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2957537.1683121573.1@sss.pgh.pa.us> Date: Wed, 03 May 2023 09:46:13 -0400 Message-ID: <2957538.1683121573@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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