Re: How to see index was rejected for seq scan?
От | Corey Taylor |
---|---|
Тема | Re: How to see index was rejected for seq scan? |
Дата | |
Msg-id | CADBz386etzbEwYPx_WCDWHD=acbXSAb+qKFu6v79YhFj0qBJww@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: How to see index was rejected for seq scan? (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>) |
Список | pgsql-general |
> But for simple queries, you might get some insight if you set
> enable_seqscan to off. Then the planner will give you an index-using
> plan if it is at all possible. Then you can compare the costs. If the
> planner still gives you a sequential scan, then the index was not
> applicable for other reasons.
Thanks! This gives me enough information. I was essentially looking for something concrete to discuss for cases where someone even more novice than myself in query optimization points to issues after adding an index.> enable_seqscan to off. Then the planner will give you an index-using
> plan if it is at all possible. Then you can compare the costs. If the
> planner still gives you a sequential scan, then the index was not
> applicable for other reasons.
В списке pgsql-general по дате отправления: