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 5CC5F5E40BB for ; Sun, 8 Aug 2004 15:32:34 -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 21066-05 for ; Sun, 8 Aug 2004 18:32:28 +0000 (GMT) Received: from servidor.unam.mx (servidor.unam.mx [132.248.10.1]) by svr1.postgresql.org (Postfix) with ESMTP id C87385E4077 for ; Sun, 8 Aug 2004 15:32:27 -0300 (ADT) Received: (qmail 2532 invoked from network); 8 Aug 2004 18:25:06 -0000 Received: from unknown (HELO [172.16.1.16]) ([201.128.150.135]) (envelope-sender ) by servidor.unam.mx (qmail-ldap-1.03) with SMTP for ; 8 Aug 2004 18:25:06 -0000 Message-ID: <411671BA.70806@servidor.unam.mx> Date: Sun, 08 Aug 2004 13:32:26 -0500 From: Jose Miguel Madinaveitia Ramirez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Problems with big tables. References: <4113C5AD.3070503@servidor.unam.mx> <411401C8.2080109@opencloud.com> In-Reply-To: <411401C8.2080109@opencloud.com> 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.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/64 X-Sequence-Number: 10786 Thanks to all for the help. The problem is the autocommit status. I change the values to off and the program work well .. Oliver Jowett wrote: > 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 > >