| От | Tom Lane |
|---|---|
| Тема | Re: cannot get stable function to use index |
| Дата | |
| Msg-id | 21840.1451502428@sss.pgh.pa.us обсуждение |
| Ответ на | Re: cannot get stable function to use index (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: cannot get stable function to use index
|
| Список | pgsql-general |
I wrote:
> This says there's only about a 25% runtime penalty for the partial match,
> at least on your example, compared to the planner's estimate of 2700x
> penalty :-(. Definitely need to fix that.
I tried to reproduce this behavior with simple generated data, and could
not: the estimates seem to track the actual cost reasonably well. So
it seems like you've got some weird data statistics that are causing a
misestimate. Could we see the pg_stats row for that tsvector column?
Or maybe even the actual data?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера