Re: lots of values for IN() clause - Mailing list pgsql-general

From Tom Lane
Subject Re: lots of values for IN() clause
Date
Msg-id 17527.1162485562@sss.pgh.pa.us
Whole thread Raw
In response to Re: lots of values for IN() clause  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
List 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 by date:

Previous
From: "Gurjeet Singh"
Date:
Subject: Re: lots of values for IN() clause
Next
From: Tom Lane
Date:
Subject: Re: lots of values for IN() clause