Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwYhU-00Cfp6-MR for pgsql-sql@arkaria.postgresql.org; Sat, 28 Oct 2023 02:05:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qwYhT-002eae-3y for pgsql-sql@arkaria.postgresql.org; Sat, 28 Oct 2023 02:05:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwYhS-002eaW-RC for pgsql-sql@lists.postgresql.org; Sat, 28 Oct 2023 02:05:18 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qwYhQ-003HeN-5B for pgsql-sql@lists.postgresql.org; Sat, 28 Oct 2023 02:05:18 +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 39S25EWV1687208; Fri, 27 Oct 2023 22:05:14 -0400 From: Tom Lane To: =?UTF-8?Q?Martin_Norb=C3=A4ck_Olivers?= cc: pgsql-sql@lists.postgresql.org Subject: Re: full text search and hyphens in uuid In-reply-to: References: Comments: In-reply-to =?UTF-8?Q?Martin_Norb=C3=A4ck_Olivers?= message dated "Fri, 27 Oct 2023 13:48:32 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1687206.1698458714.1@sss.pgh.pa.us> Date: Fri, 27 Oct 2023 22:05:14 -0400 Message-ID: <1687207.1698458714@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?UTF-8?Q?Martin_Norb=C3=A4ck_Olivers?= writes: > Is there any way to change this behaviour of the tsvector lexer? Do I have > to write my own tsvector or is there a way to "turn off" integer handling > in the lexer? Sadly, no, you'd have to write your own lexer. This is a weak spot in text search configurability for sure. But I lack any ideas about how to make it better. regards, tom lane