Re: lots of values for IN() clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: lots of values for IN() clause
Дата
Msg-id 17527.1162485562@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: lots of values for IN() clause  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-general
"Gurjeet Singh" <singh.gurjeet@gmail.com> writes:
> But I do not understand why the IN list has to make so many recursive
> calls???

Existing releases effectively expand "foo IN (1,2,3,...)" to
"(((foo = 1) OR foo = 2) OR foo = 3) ..." which can be a deeply
nested OR structure.  IIRC this is changed in 8.2.

            regards, tom lane

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

Предыдущее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: lots of values for IN() clause
Следующее
От: Tom Lane
Дата:
Сообщение: Re: lots of values for IN() clause