<-> Operator on Trigram Index - Mailing list pgsql-general

From Jeffrey Kamei
Subject <-> Operator on Trigram Index
Date
Msg-id CAN05fs0rr8MuHGhGWsccdWAGYuKsEG-SnA0V9bdsdrPxe91cTg@mail.gmail.com
Whole thread Raw
Responses Re: <-> Operator on Trigram Index
List pgsql-general
I'm trying to get the <-> operator to recognize a trigram index (GIST) I've set on a table. Using `EXPLAIN VERBOSE` I can see the query engine ignoring the trigram index when using the `<->` operator. However if I use the `%` operator, the index is found and used. Can you explain why this is happening? As far as I can tell from the documentation, the `<->` operator should be using the index as well. 

pgsql-general by date:

Previous
From: Олег Самойлов
Date:
Subject: Re: WTF with hash index?
Next
From: Rich Shepard
Date:
Subject: Re: Move cluster to new host, upgraded version