Re: Question about trigram GIST index

Поиск
Список
Период
Сортировка
От Jeff Janes
Тема Re: Question about trigram GIST index
Дата
Msg-id CAMkU=1wuYFGka_+kNZkjQyighQ6ht8n8zJ402PBToSyn2sWtWw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Question about trigram GIST index  (Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>)
Ответы Re: Question about trigram GIST index
Список pgsql-performance
On Thu, Dec 18, 2014 at 10:00 AM, Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it> wrote:
I'm not sure about the '%' operator, but I'm sure that the GIST index will never be used in the

  SELECT * FROM users WHERE lower(name) LIKE '%john%';

query; it is used for left or right anchored search, such as 'john%' or '%john'.

The point of the gist_trgm_ops operator is specifically to overcome that limitation.

It is pretty awesome.

Cheers,

Jeff

В списке pgsql-performance по дате отправления:

Предыдущее
От: Robert DiFalco
Дата:
Сообщение: Re: Question about trigram GIST index
Следующее
От: Robert DiFalco
Дата:
Сообщение: Re: Question about trigram GIST index