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 1s5Pau-005GkY-CI for pgsql-admin@arkaria.postgresql.org; Fri, 10 May 2024 12:43:24 +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 1s5Pas-00EhaP-LV for pgsql-admin@arkaria.postgresql.org; Fri, 10 May 2024 12:43:22 +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 1s5PZn-00Ecsg-AP for pgsql-admin@lists.postgresql.org; Fri, 10 May 2024 12:42:15 +0000 Received: from smtp-outgoing-1902.laposte.net ([160.92.124.106]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s5PZk-000LaE-DS for pgsql-admin@lists.postgresql.org; Fri, 10 May 2024 12:42:15 +0000 X-mail-filterd: {"version":"1.7.5","queueID":"4VbT6T1hx7zFpTt","contextId": "a2afd590-4702-44a2-8e18-4ca5fefb17ad"} Received: from outgoing-mail.laposte.net (localhost.localdomain [127.0.0.1]) by mlpnf0101.laposte.net (SMTP Server) with ESMTP id 4VbT6T1hx7zFpTt for ; Fri, 10 May 2024 14:42:09 +0200 (CEST) X-mail-filterd: {"version":"1.7.5","queueID":"4VbT6T0z4pzFpTZ","contextId": "2f7c7e6b-dc51-43b1-9e7a-cf2d3955ee69"} X-lpn-mailing: LEGIT X-lpn-spamrating: 40 X-lpn-spamlevel: not-spam Received: from [192.168.66.1] (maison.figarola.fr [82.64.111.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mlpnf0101.laposte.net (SMTP Server) with ESMTPSA id 4VbT6T0z4pzFpTZ for ; Fri, 10 May 2024 14:42:09 +0200 (CEST) Message-ID: <915896ff-9c88-410d-8764-90ba08329ef7@laposte.net> Date: Fri, 10 May 2024 14:42:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: syntax error at or near "gist_trgm_ops" on debian To: pgsql-admin@lists.postgresql.org References: <1ad5dfef-1c9c-4407-bd61-222926877885@straussaudio.ch> Content-Language: fr From: =?UTF-8?Q?fran=C3=A7ois_Figarola?= In-Reply-To: <1ad5dfef-1c9c-4407-bd61-222926877885@straussaudio.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laposte.net; s=lpn-wlmd; t=1715344932; bh=CU/myWS7fMv4vpXo5k3ddZNP6QDm0R9/hKYXWy4zmew=; h=Message-ID:Date:MIME-Version:Subject:To:References:Content-Language:From:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=e29vX21QqGaN21lhyh7DdWqPNJB7DgC78Rhn2Bwh0f7hVo9aErpdpLsnmzstuxyHP/wVKKBw/yNBSM/WBZqSOZ01j3juPJpsmY9syR++zbmAS9WKZjinYvz0pGBLPNmJDc0dAqXjrOQMM3kQsi5jqskUWd2f1dSrs1EgeNlUNmtEI//NKTqCA/4YMLnmisylHBk0Y21etotzRsRVUtAkpTNGwL76UkjKnpibLIDMgJvEtoo9neRvQc1Wj1B82GMRpJN+12xLlURgiKk2jRH/0Qhg0pKHRcLC18rKP2gY3zOJ+313Is5+btTqGfRevV/oRQyKRRnURYjb0+68SImBlw==; List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Le 10/05/2024 =C3=A0 14:00, Philippe Strauss a =C3=A9crit=C2=A0: > Hello Postgres users, > > I'm Philippe from switzerland, > > I want to build a trigram index in a mycology database of mine,=20 > currently running on a debian laptop, and facing the following issue: > > > diskpix=3D> CREATE INDEX idx_trgm_genus ON myco.genus USING GIST=20 > (myco.genus.name gist_trgm_ops); > ERROR:=C2=A0 syntax error at or near "gist_trgm_ops" > LINE 1: ...m_genus ON myco.genus USING GIST (myco.genus.name=20 > gist_trgm_... > > > I've installed the postgresql-contrib package, rebooted my box, then=20 > created the trgm extension using: > > > CREATE EXTENSION pg_trgm; > > > But it still does not work, what am I missing? > Hello Philippe, Perhaps you should try using ONLY the name of the column to index, not=20 specifying the table : CREATE INDEX idx_trgm_genus ON myco.genus USING GIST (name gist_trgm_ops)= ; Yours, Fran=C3=A7ois