Re: Regression in IN( field, field, field ) performance

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Regression in IN( field, field, field ) performance
Дата
Msg-id
10073.1224778576@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Regression in IN( field, field, field ) performance Jim 'Decibel!' Nasby <jnasby@cashnetusa.com>
Re: Regression in IN( field, field, field ) performance Tom Lane <tgl@sss.pgh.pa.us>
Re: Regression in IN( field, field, field ) performance Decibel! <decibel@decibel.org>
Re: Regression in IN( field, field, field ) performance Tom Lane <tgl@sss.pgh.pa.us>
Re: Regression in IN( field, field, field ) performance Gregory Stark <stark@enterprisedb.com>
Re: Regression in IN( field, field, field ) performance Tom Lane <tgl@sss.pgh.pa.us>
Re: Regression in IN( field, field, field ) performance Decibel! <decibel@decibel.org>
Re: Regression in IN( field, field, field ) performance "Robert Haas" <robertmhaas@gmail.com>
Re: Regression in IN( field, field, field ) performance Tom Lane <tgl@sss.pgh.pa.us>
Gregory Stark  writes:
> Tom Lane  writes:
>> Works fine for me, eg

> I think he's looking for something like:
>  5 IN (col1,col2,col3)
> resulting in a bitmap or of three index scans of three different indexes on
> col1, col2, and col3.

Ah, I see.  It would be easy to make transformAExprIn() generate an OR
tree instead of = ANY(ARRAY[]), if we could figure out the conditions
where an OR tree is superior.  I'm not sure it's easy to tell though.
Is it sufficient to do this when there are Vars on the right side and
none on the left?
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Magnus Hagander
Дата:
От: Heikki Linnakangas
Дата:
FAQ