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 1jvLSq-0003PI-3Q for pgsql-admin@arkaria.postgresql.org; Tue, 14 Jul 2020 13:59:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jvLSp-0000on-0J for pgsql-admin@arkaria.postgresql.org; Tue, 14 Jul 2020 13:59:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvLSo-0000of-PA for pgsql-admin@lists.postgresql.org; Tue, 14 Jul 2020 13:59:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvLSl-0007OF-Uq for pgsql-admin@postgresql.org; Tue, 14 Jul 2020 13:59: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 06EDxD5n2816066; Tue, 14 Jul 2020 09:59:13 -0400 From: Tom Lane To: Aditya Toshniwal cc: pgsql-admin@postgresql.org Subject: Re: PG12 Server on crash on creating FTS dictionary In-reply-to: References: Comments: In-reply-to Aditya Toshniwal message dated "Tue, 14 Jul 2020 15:52:20 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2816064.1594735153.1@sss.pgh.pa.us> Date: Tue, 14 Jul 2020 09:59:13 -0400 Message-ID: <2816065.1594735153@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Aditya Toshniwal writes: > I've encountered a server crash on creating FTS dictionary with below SQLs: > CREATE TEXT SEARCH TEMPLATE public.ftstemp ( > INIT = varchar_support, > LEXIZE = dispell_lexize > ); This is just pilot error; varchar_support() is surely not a suitable init function for a text search template. (The reason this command is superuser-only is exactly that we have to trust the user to specify a sane set of functions.) regards, tom lane