| От | Tom Lane |
|---|---|
| Тема | Re: Problem with indices from 10 to 13 |
| Дата | |
| Msg-id | 2920281.1632868873@sss.pgh.pa.us обсуждение |
| Ответ на | RE: Problem with indices from 10 to 13 (Daniel Diniz <daniel@flashcourier.com.br>) |
| Ответы |
RE: Problem with indices from 10 to 13
|
| Список | pgsql-performance |
Daniel Diniz <daniel@flashcourier.com.br> writes:
> The index I use is the GIN.
pg_trgm, you mean? That answers one question, but you still didn't
explain what type h.nome_des is, nor how bytea and convert_from()
are getting into the picture.
The second part of that is probably not critical, since the planner
should be willing to reduce the convert_from() call to a constant
for planning purposes, so I'm unclear as to why the estimate for
the ilike clause is so bad. Have you tried increasing the statistics
target for h.nome_des to see if the estimate gets better?
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера