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 D530552F01 for ; Tue, 2 Aug 2005 11:00:33 -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 10367-01 for ; Tue, 2 Aug 2005 14:00:29 +0000 (GMT) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by svr1.postgresql.org (Postfix) with ESMTP id 4E44F52CA7 for ; Tue, 2 Aug 2005 11:00:28 -0300 (ADT) Received: from frontend3.messagingengine.com (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id 96DE1CC7AD7 for ; Tue, 2 Aug 2005 10:00:32 -0400 (EDT) X-Sasl-enc: xDSG1nqc6/HhCczA40V8MpcAeQ0ilkUXg6teWsLdhuHs 1122991229 Received: from [192.168.5.130] (unknown [194.80.67.65]) by www.fastmail.fm (Postfix) with ESMTP id 01C422CC19 for ; Tue, 2 Aug 2005 10:00:28 -0400 (EDT) Message-ID: <42EF7C7F.5000406@jasperpotts.com> Date: Tue, 02 Aug 2005 15:00:31 +0100 From: Jasper Potts User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Select where id in (LARGE LIST) ? 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> In-Reply-To: <42EF4193.3020009@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200508/11 X-Sequence-Number: 13580 I know from when I was testing "SELECT ... WHERE id IN (...,...)" I got a buffer over flow or similar exception from the postgresql native process at about 200-300 longs in the IN clause. Could do with finding what the real limits are so I can protect against it. I will have a dig though the documentation later see what I can find :-) Thanks Jasper Oliver Jowett wrote: >Jasper Potts wrote: > > > >>The big question here is whats the max length of a query sent though >>JDBC to Postgresql??? >> >> > >You'll hit backend limits (I'm not sure if there are any explicit limits >there other than available memory) before you hit any protocol limits; >the protocol limits kick in at around 1GB.. > >-O > >