From: Jeffrey Kamei <jeff@windfalldata.com>
To: pgsql-general@postgresql.org
Subject: <-> Operator on Trigram Index
Date: Tue, 13 Nov 2018 15:42:51 -0700
Message-ID: <CAN05fs0rr8MuHGhGWsccdWAGYuKsEG-SnA0V9bdsdrPxe91cTg@mail.gmail.com> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: jeff@windfalldata.com
Subject: Re: <-> Operator on Trigram Index
In-Reply-To: <CAN05fs0rr8MuHGhGWsccdWAGYuKsEG-SnA0V9bdsdrPxe91cTg@mail.gmail.com>
References: <CAN05fs0rr8MuHGhGWsccdWAGYuKsEG-SnA0V9bdsdrPxe91cTg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox