| От | Tom Lane |
|---|---|
| Тема | Re: Why search term results different query plan? |
| Дата | |
| Msg-id | 211.1001817444@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Why search term results different query plan? (Martijn van Oosterhout <kleptog@svana.org>) |
| Ответы |
Re: Why search term results different query plan?
|
| Список | pgsql-general |
Martijn van Oosterhout <kleptog@svana.org> writes:
> I don't really see how you can do any real estimates on %X% type queries,
> although maybe it's assuming longer string => less matches.
More exactly, it's assuming more fixed characters in the pattern ->
less matches; see like_selectivity in src/backend/utils/adt/selfuncs.c.
While the specific numbers it's using are made from whole cloth, I think
the principle should hold good.
I don't see any way to accumulate actual statistics that would improve
the estimate, do you?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера