| От | Tom Lane |
|---|---|
| Тема | Re: Optimizer is not choosing index |
| Дата | |
| Msg-id | 24345.1329347480@sss.pgh.pa.us обсуждение |
| Ответ на | Optimizer is not choosing index (Markus Innerebner <markus.innerebner@inf.unibz.it>) |
| Ответы |
Re: Optimizer is not choosing index
|
| Список | pgsql-performance |
Markus Innerebner <markus.innerebner@inf.unibz.it> writes:
> The query plan says, that a sequential scan is performed on the edge table. I consider it strange that he is not
accessingon the (btree) index one the edge table.
This suggests that you have a datatype mismatch:
> " Hash Cond: ((e.target)::numeric = n.id)"
Your index is presumably on e.target, not e.target::numeric, so it's not
applicable. Try to make the join columns the same datatype.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера