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 BB724D1B1A1 for ; Fri, 23 Jul 2004 15:21:00 -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 65948-04 for ; Fri, 23 Jul 2004 18:20:56 +0000 (GMT) Received: from owlery.vecna.com (owlery.vecna.com [207.188.238.194]) by svr1.postgresql.org (Postfix) with ESMTP id E4EC2D1B26E for ; Fri, 23 Jul 2004 15:20:53 -0300 (ADT) Received: from vecna.com (george.mco.vecna.com [192.168.3.9]) by owlery.vecna.com (8.12.8/8.12.8) with ESMTP id i6NIKr08013011 for ; Fri, 23 Jul 2004 14:20:53 -0400 Message-ID: <410156D7.50109@vecna.com> Date: Fri, 23 Jul 2004 14:20:07 -0400 From: Bill Schneider Organization: Vecna Technologies, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: JDBC memory usage 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: 200407/269 X-Sequence-Number: 10653 Hello, I noticed that I keep running out of memory when trying to run a query that returns 100,000 rows or so. Searching the archives, it seems that the JDBC driver reads the entire ResultSet into memory at once rather than using cursors. This is definitely not the desired behavior for this particular query. Has this been fixed recently? I'm using PostgreSQL 7.3.4 with the corresponding JDBC driver. Thanks! -- Bill -- Bill Schneider Chief Architect Vecna Technologies 5004 Lehigh Rd., Suite B College Park, MD 20740 bschneider@vecna.com t: 301-864-7253 x1140 f: 301-699-3180