Re: Multiple-index optimization not working for = ANY operator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Multiple-index optimization not working for = ANY operator
Дата
Msg-id 20660.1140044977@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Multiple-index optimization not working for = ANY operator  ("Jimmy Choi" <JCHOI@altera.com>)
Список pgsql-general
"Jimmy Choi" <JCHOI@altera.com> writes:
> I find that it doesn't work (i.e. index is not used and a sequential
> scan is needed), if I have the following instead:
>   SELECT * FROM foo WHERE id = ANY (ARRAY[1,2]);
> Is this expected?

Yes. That construct isn't indexable, period, in any existing release
(it does work in CVS tip though...)

            regards, tom lane

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

Предыдущее
От: Rick Gigger
Дата:
Сообщение: Re: I see this as the end of BDB in MySQL without a doubt.
Следующее
От: Reid Thompson
Дата:
Сообщение: Oracle tried to buy MySQL