Re: Why search term results different query plan?

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Why search term results different query plan?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Encoding passwords