Re: pg_trgm Extension Installed but Operators and Functions do not exist

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_trgm Extension Installed but Operators and Functions do not exist
Date: 2018-01-28 20:35:32
Message-ID: 14642.1517171732@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Igal @ Lucee.org" <igal(at)lucee(dot)org> writes:
> I am trying to run a query which was working a few weeks ago, and it
> utilizes the <<-> operator but I am getting an error: operator does not
> exist text <<-> text.

> If I try instead the function word_similarity() I get a similar (no pun
> intended) error: function word_similarity(text, text) does not exist.

> If I try to install the pg_trgm extension with `CREATE EXTENSION
> pg_trgm;` I get an error: extension "pg_trgm" already exists.

Seems like a likely bet is that the extension is installed in a schema
that isn't in your search_path.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igal @ Lucee.org 2018-01-28 20:49:31 Re: pg_trgm Extension Installed but Operators and Functions do not exist
Previous Message Igal @ Lucee.org 2018-01-28 19:56:03 pg_trgm Extension Installed but Operators and Functions do not exist