X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DBE0A528C0 for ; Tue, 2 Aug 2005 23:39:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84224-03 for ; Wed, 3 Aug 2005 02:39:39 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9C763529AB for ; Tue, 2 Aug 2005 23:39:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j732daOb026494; Tue, 2 Aug 2005 22:39:36 -0400 (EDT) To: Oliver Jowett Cc: Jasper Potts , pgsql-jdbc@postgresql.org Subject: Re: Select where id in (LARGE LIST) ? In-reply-to: <42F007BE.8040002@opencloud.com> References: <42EA4B90.4050606@jasperpotts.com> <1122651744.2837.196.camel@coppola.muc.ecircle.de> <42EA811B.10409@jasperpotts.com> <1122885611.2837.209.camel@coppola.muc.ecircle.de> <42EF3B8F.1020603@jasperpotts.com> <42EF4193.3020009@opencloud.com> <42EF7C7F.5000406@jasperpotts.com> <42F007BE.8040002@opencloud.com> Comments: In-reply-to Oliver Jowett message dated "Wed, 03 Aug 2005 11:54:38 +1200" Date: Tue, 02 Aug 2005 22:39:36 -0400 Message-ID: <26493.1123036776@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200508/15 X-Sequence-Number: 13584 Oliver Jowett writes: > There may be a (backend) limit on the number of parameters in a query, > not sure. I'm pretty certain there's no hard limit. However, I doubt anyone has tested with thousands of parameters ... there might well be performance issues, such as loops that are O(N^2) in the number of parameters. Feel free to send along problem cases. regards, tom lane