Link to home
Start Free TrialLog in
Avatar of elimesika
elimesikaFlag for Israel

asked on

What is the limit on the number of elements in the IN clause of SELECT

HI

Is there any limit to the number of elements in the IN clause of  SELECT in Postgres ?

Thanks
Avatar of McNetic
McNetic
Flag of Germany image

I can't give the real answer, but several thousand entries should work.
ASKER CERTIFIED SOLUTION
Avatar of elimesika
elimesika
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zoniac
Zoniac

Check whether this answers:

http://stackoverflow.com/questions/1009706/postgresql-max-number-of-parameters-in-in-clause

> After exploring , it is not limited , so you can handle theoretically  any number of values as long > as it not pass the string max size (4GB)
Also, can you share the web link for this answer?