| От | Gregory Stark |
|---|---|
| Тема | Re: LIKE search and performance |
| Дата | |
| Msg-id | 87y7jckcp6.fsf@oxford.xeocode.com обсуждение исходный текст |
| Ответ на | Re: LIKE search and performance (Richard Huxton <dev@archonet.com>) |
| Ответы |
Re: LIKE search and performance
|
| Список | pgsql-performance |
"Richard Huxton" <dev@archonet.com> writes: > Now you and I can look at a substring and probably make a good guess how common > it is (assuming we know the targets are British surnames or Japanese towns). PG > needs one number - or rather, it picks one number for each length of > search-string (afaik). I don't think that's true. Postgres calculates the lower and upper bound implied by the search pattern and then uses the histogram to estimate how selective that range is. It's sometimes surprisingly good but obviously it's not perfect. -- Gregory Stark EnterpriseDB http://www.enterprisedb.com
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера