Re: IN limit

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Said Ramirez" <sramirez(at)vonage(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: IN limit
Date: 2008-12-10 18:35:12
Message-ID: dcc563d10812101035s54b25e4co87c84648b9a854cf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 10, 2008 at 11:28 AM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
> On Wed, Dec 10, 2008 at 11:08 AM, Said Ramirez <sramirez(at)vonage(dot)com> wrote:
>> Is there a limit to the number of entries I can pass in an IN clause as part
>> of a SELECT statement? As in
>> SELECT baz FROM foo where id in ( 1, 2,... ) ;
>
> I think it's high enough you'd have performance problems before it
> would fail. If there even is one.

Just tested it with a subselect with 10M rows in an in clause. Not
sure if that's the same as literal strings though.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2008-12-10 18:40:17 Re: quit milis
Previous Message Scott Marlowe 2008-12-10 18:28:37 Re: IN limit