From: Arthur Zakirov <a.zakirov@postgrespro.ru>
To: Jeffrey Kamei <jeff@windfalldata.com>
To: pgsql-general@postgresql.org
Subject: Re: <-> Operator on Trigram Index
Date: Thu, 15 Nov 2018 12:28:16 +0300
Message-ID: <dda9c633-6628-b3a3-78e6-0dc7bb279b82@postgrespro.ru> (raw)
In-Reply-To: <CAN05fs0rr8MuHGhGWsccdWAGYuKsEG-SnA0V9bdsdrPxe91cTg@mail.gmail.com>
References: <CAN05fs0rr8MuHGhGWsccdWAGYuKsEG-SnA0V9bdsdrPxe91cTg@mail.gmail.com>
Hello,
On 14.11.2018 01:42, Jeffrey Kamei wrote:
> 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.
Yes <-> operator should use a GiST index. Can you show your query and
its plan?
--
Arthur Zakirov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
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: a.zakirov@postgrespro.ru, jeff@windfalldata.com
Subject: Re: <-> Operator on Trigram Index
In-Reply-To: <dda9c633-6628-b3a3-78e6-0dc7bb279b82@postgrespro.ru>
References: <CAN05fs0rr8MuHGhGWsccdWAGYuKsEG-SnA0V9bdsdrPxe91cTg@mail.gmail.com> <dda9c633-6628-b3a3-78e6-0dc7bb279b82@postgrespro.ru>
* 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