| От | Tom Lane |
|---|---|
| Тема | Re: cannot get stable function to use index |
| Дата | |
| Msg-id | 13146.1451491790@sss.pgh.pa.us обсуждение |
| Ответ на | Re: cannot get stable function to use index (Andy Colson <andy@squeakycode.net>) |
| Ответы |
Re: cannot get stable function to use index
|
| Список | pgsql-general |
Andy Colson <andy@squeakycode.net> writes:
> -> Bitmap Index Scan on search_key (cost=0.00..6.00 rows=1 width=0) (actual time=0.025..0.025 rows=0 loops=1)
> Index Cond: (search_vec @@ to_tsquery('213 & E & 13 & ST & N'::text))
Hmm ... so the partial case actually is significantly more expensive than
the non-partial case: 4 msec vs .025 msec. Still, that's about a 200x
penalty, not the 10000x penalty the planner is ascribing to it.
Thanks for the data! I'll go moan about this on -hackers.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера