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 1oLHuX-0004Pb-K6 for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Aug 2022 05:36:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLHuW-0003Rr-DZ for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Aug 2022 05:36:12 +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 1oLHuW-0003Ri-5H for pgsql-bugs@lists.postgresql.org; Tue, 09 Aug 2022 05:36:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLHuU-0006Bn-3c for pgsql-bugs@lists.postgresql.org; Tue, 09 Aug 2022 05:36:11 +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 2795a3IJ779092; Tue, 9 Aug 2022 01:36:03 -0400 From: Tom Lane To: Japin Li cc: pgsql-bugs@lists.postgresql.org Subject: Re: Coredump with text search dictionary In-reply-to: References: <774952.1660020771@sss.pgh.pa.us> Comments: In-reply-to Japin Li message dated "Tue, 09 Aug 2022 13:31:18 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <779090.1660023363.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 09 Aug 2022 01:36:03 -0400 Message-ID: <779091.1660023363@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Japin Li writes: > On Tue, 09 Aug 2022 at 12:52, Tom Lane wrote: >> There's a reason why CREATE TEXT SEARCH TEMPLATE is superuser-only: >> it's on you to supply valid parameters. varchar_support is a >> completely inappropriate choice for a TS template init function. > I didn't see documentation that describes which function is appropriate = for a > TS template init function. Umm ... maybe one that claims to be a TS init function? I'm not sure why you're having a hard time believing that varchar_support is not that. regards, tom lane