Re: Estimation problem with a LIKE clause containing a /
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Estimation problem with a LIKE clause containing a / |
| Дата | |
| Msg-id | 17767.1194453292@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Estimation problem with a LIKE clause containing a / ("Guillaume Smet" <guillaume.smet@gmail.com>) |
| Ответы |
Re: Estimation problem with a LIKE clause containing a /
Re: Estimation problem with a LIKE clause containing a / |
| Список | pgsql-performance |
"Guillaume Smet" <guillaume.smet@gmail.com> writes:
> [ bad estimate for LIKE ]
Hmmm ... what locale are you working in? I notice that the range
estimator for this pattern would be "ancestors >= '1062/' AND
ancestors < '10620'", which will do the right thing in C locale
but maybe not so much elsewhere.
> Version is PostgreSQL 8.1.8 on i686-redhat-linux-gnu,
You'd probably get better results with 8.2, which has a noticeably
smarter LIKE-estimator, at least for histogram sizes of 100 or more.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера