Re: Behavior of a pg_trgm index for 2 (or < 3) character LIKE queries

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Amit Langote <amitlangote09(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Behavior of a pg_trgm index for 2 (or < 3) character LIKE queries
Date: 2013-05-30 14:47:42
Message-ID: CA+TgmobvsL35sRPJ8BjHgTkPMZssTL03iO4xY2nMkxje0t5XxQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 29, 2013 at 10:51 PM, Amit Langote <amitlangote09(at)gmail(dot)com> wrote:
> So, it appears, for search strings consisting of 2 (or < 3)
> characters, trigrams can not be utilized. No?

I think that's right. "trigram" means a sequence of three characters,
and what's stored in the indexes are three-character sequences from
the original text.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2013-05-30 15:00:51 Re: Behavior of a pg_trgm index for 2 (or < 3) character LIKE queries
Previous Message Joe Conway 2013-05-30 14:05:24 Re: pg_dump with postgis extension dumps rules separately