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 BFC35D1B182 for ; Fri, 23 Jul 2004 15:39:54 -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 72489-05 for ; Fri, 23 Jul 2004 18:39:53 +0000 (GMT) Received: from black.geophile.com (h004005242b8e.ne.client2.attbi.com [24.91.49.146]) by svr1.postgresql.org (Postfix) with ESMTP id 8FC35D1B179 for ; Fri, 23 Jul 2004 15:39:50 -0300 (ADT) Received: from black.geophile.com (localhost.localdomain [127.0.0.1]) by black.geophile.com (8.12.8/8.12.8) with ESMTP id i6NIa7Xq017951; Fri, 23 Jul 2004 14:36:07 -0400 Received: (from apache@localhost) by black.geophile.com (8.12.8/8.12.8/Submit) id i6NIa1pf017949; Fri, 23 Jul 2004 14:36:01 -0400 X-Authentication-Warning: black.geophile.com: apache set sender to jao@geophile.com using -f Received: from 64.119.142.34 ([64.119.142.34]) by geophile.com (IMP) with HTTP for ; Fri, 23 Jul 2004 14:36:01 -0400 Message-ID: <1090607761.41015a91d8bd8@geophile.com> Date: Fri, 23 Jul 2004 14:36:01 -0400 From: jao@geophile.com To: Bill Schneider Cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC memory usage References: <410156D7.50109@vecna.com> In-Reply-To: <410156D7.50109@vecna.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.2 X-Originating-IP: 64.119.142.34 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200407/270 X-Sequence-Number: 10654 Quoting Bill Schneider : > 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. I ran into this problem. The driver developers informed me that this problem is fixed in 7.4, and that the new driver can be used with a 7.3 server. (This exchange should be in the pgsql-jdbc archives.) Jack Orenstein ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.