| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера