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 209BD5E46C5 for ; Fri, 6 Aug 2004 19:10:31 -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 31311-09 for ; Fri, 6 Aug 2004 22:10:27 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 8A8B85E46C0 for ; Fri, 6 Aug 2004 19:10:24 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BtCuq-0007yp-00; Sat, 07 Aug 2004 10:10:20 +1200 Message-ID: <411401C8.2080109@opencloud.com> Date: Sat, 07 Aug 2004 10:10:16 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jose Miguel Madinaveitia Ramirez Cc: pgsql-jdbc@postgresql.org Subject: Re: Problems with big tables. References: <4113C5AD.3070503@servidor.unam.mx> In-Reply-To: <4113C5AD.3070503@servidor.unam.mx> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200408/54 X-Sequence-Number: 10776 Jose Miguel Madinaveitia Ramirez wrote: > Hi, I have a problem to obtain big tables (1 million records) with the > jdbc driver. > The out of memory error is throw by the executeQuery(). > The fetchsize() function does not work.? With the most current drivers, cursors will only be used to incrementally fetch data when all of these conditions are true: - a positive fetchsize has been set via setFetchSize() - autocommit is off - the resultset type is TYPE_FORWARD_ONLY - you are connecting to a 7.4 or above server -O