X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 90617CCA4A for ; Thu, 17 Jul 2003 15:38:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 89871-02 for ; Thu, 17 Jul 2003 15:38:51 +0000 (GMT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id 1D0ECCCA46 for ; Thu, 17 Jul 2003 12:38:21 -0300 (ADT) Received: from tmsl-adsl.demon.co.uk ([80.177.114.181] helo=bacon.tmsl.demon.co.uk) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 19dAqI-0003jB-0U; Thu, 17 Jul 2003 16:38:50 +0100 Date: Thu, 17 Jul 2003 16:38:47 +0100 From: Paul Thomas To: Felipe Schnack Cc: "pgsql-jdbc @ postgresql . org" Subject: Re: setFetchSize Message-ID: <20030717163847.B28330@bacon> References: <20030717102416.0f523cc2.felipes@ritterdosreis.br> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <20030717102416.0f523cc2.felipes@ritterdosreis.br>; from felipes@ritterdosreis.br on Thu, Jul 17, 2003 at 14:24:16 +0100 X-Mailer: Balsa 1.2.3 Lines: 19 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/82 X-Sequence-Number: 7466 On 17/07/2003 14:24 Felipe Schnack wrote: > There is a way that I can set setFetchSize() that will prevent pgsql > from caching all the results of a query to server's memory? > I'm trying to search in the archives but any search I try returns 0 > results... Not AFAIK. A work-round might be to use limit and offset in your sql. HTH -- Paul Thomas +------------------------------+---------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+---------------------------------------------+