syntax error at or near "gist_trgm_ops" on debian - Mailing list pgsql-admin

From Philippe Strauss
Subject syntax error at or near "gist_trgm_ops" on debian
Date
Msg-id 1ad5dfef-1c9c-4407-bd61-222926877885@straussaudio.ch
Whole thread Raw
Responses Re: syntax error at or near "gist_trgm_ops" on debian
List pgsql-admin
Hello Postgres users,

I'm Philippe from switzerland,

I want to build a trigram index in a mycology database of mine, 
currently running on a debian laptop, and facing the following issue:


diskpix=> CREATE INDEX idx_trgm_genus ON myco.genus USING GIST 
(myco.genus.name gist_trgm_ops);
ERROR:  syntax error at or near "gist_trgm_ops"
LINE 1: ...m_genus ON myco.genus USING GIST (myco.genus.name gist_trgm_...


I've installed the postgresql-contrib package, rebooted my box, then 
created the trgm extension using:


CREATE EXTENSION pg_trgm;


But it still does not work, what am I missing?

-- 
Philippe Strauss
https://straussengineering.ch/




pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Re: Request for feature: VACUUM FULL updates pg_stat_all_tables.last_vacuum
Next
From: Wasim Devale
Date:
Subject: pgrouting and postgis