From: Bruno Wolff III <bruno@wolff.to>
To: Gourish Singbal <gourish@gmail.com>
Cc: PgSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: Whats the limit on the number of elements in the IN clause of SELECT/UPDATE/DELETE
Date: Tue, 22 Mar 2005 11:50:56 -0600
Message-ID: <20050322175056.GA12999@wolff.to> (raw)
In-Reply-To: <674d1f8a0503220822307d6f52@mail.gmail.com>
References: <674d1f8a0503220822307d6f52@mail.gmail.com>
On Tue, Mar 22, 2005 at 21:52:35 +0530,
Gourish Singbal <gourish@gmail.com> wrote:
> Can some one give me the details for the below question?.
>
> Whats the limit on the number of elements in the IN clause of
> SELECT/UPDATE/DELETE?.
I believe I have seen reports of people using thousands. However, since
this case is converted to OR, it won't be particular fast when you have
a number of values. In that case you are going to be better off loading
them into a temp table, analyzing the table and then using IN with a
subselect (and you want to be using 7.4 or later).
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: bruno@wolff.to, gourish@gmail.com
Subject: Re: Whats the limit on the number of elements in the IN clause of SELECT/UPDATE/DELETE
In-Reply-To: <20050322175056.GA12999@wolff.to>
References: <674d1f8a0503220822307d6f52@mail.gmail.com> <20050322175056.GA12999@wolff.to>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox