Re: Question on Trigram GIST indexes

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Question on Trigram GIST indexes
Дата
Msg-id 20121222214611.144670@gmx.com
обсуждение исходный текст
Ответ на Question on Trigram GIST indexes  (ERR ORR <rd0002@gmail.com>)
Список pgsql-general
ERR ORR wrote:

> Specifically, I was trying to replicate what is done in this blog post:
> http://www.postgresonline.com/journal/archives/212-PostgreSQL-9.1-Trigrams-teaching-LIKE-and-ILIKE-new-tricks.html

> Queries which use "WHERE "TST_PAYLOAD" LIKE 'SEAT%'" go to the btree index
> as it should.
> Queries which use "WHERE "TST_PAYLOAD" LIKE '%EAT%'" *should* use the GIST
> index but do a full table scan instead.
> (I am looking for names like 'SEATTLE')

Have you run VACUUM ANALYZE with the index and data in place (as
shown in the blog post?

Another conspicuous difference is your explicit use of a COLLATE
clause in the index declaration.

-Kevin


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: rule / trigger definition
Следующее
От: hamann.w@t-online.de
Дата:
Сообщение: Re: Using POSIX Regular Expressions on xml type fields gives inconsistent results