Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1514
  • Last Modified:

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
0
elimesika
Asked:
elimesika
1 Solution
 
McNeticCommented:
I can't give the real answer, but several thousand entries should work.
0
 
elimesikaAuthor Commented:
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)

 
0
 
ZoniacCommented:
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?

0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now