Re: Why the planner is not using the INDEX .

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why the planner is not using the INDEX .
Дата
Msg-id 23492.1120579796@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why the planner is not using the INDEX .  (David Gagnon <dgagnon@siunik.com>)
Ответы Re: Why the planner is not using the INDEX .  (David Gagnon <dgagnon@siunik.com>)
Список pgsql-performance
David Gagnon <dgagnon@siunik.com> writes:
>  explain analyse SELECT IRNUM FROM IR
>         INNER JOIN IT ON  IT.ITIRNUM = ANY ('{1000, 2000}') AND
> IT.ITYPNUM = 'M' AND IR.IRYPNUM = IT.ITYPNUM AND IR.IRNUM = IT.ITIRNUM
>         WHERE IRNUM = ANY ('{1000, 2000}') and IRYPNUM = 'M'

Those =ANY constructs are not currently optimizable at all.  You might
get better results with "IT.ITIRNUM IN (1000, 2000)" etc.

            regards, tom lane

В списке pgsql-performance по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Why the planner is not using the INDEX .
Следующее
От: Alexander Stanier
Дата:
Сообщение: Heavy virtual memory usage on production system