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

Posted on 2010-08-15
Last Modified: 2012-05-10

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

Question by:elimesika
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 33444896
I can't give the real answer, but several thousand entries should work.
LVL 19

Accepted Solution

elimesika earned 0 total points
ID: 33462674
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)


Expert Comment

ID: 33473258
Check whether this answers:

> 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?


Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Best database to use for Maps is PostgreSQL. This is an open source database. Comes as a package with most Linux OS. For more info visit the following site: ( This requires some add-o…
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities. I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question