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 4C8FE32ADAB for ; Sun, 10 Oct 2004 15:42:42 +0100 (BST) 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 49553-01 for ; Sun, 10 Oct 2004 14:42:35 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by svr1.postgresql.org (Postfix) with ESMTP id EBEDD32AC67 for ; Sun, 10 Oct 2004 15:42:37 +0100 (BST) Received: from [192.168.1.52] (dtenny.ne.client2.attbi.com[24.60.112.224]) by comcast.net (sccrmhc11) with ESMTP id <2004101014423701100k3upce>; Sun, 10 Oct 2004 14:42:37 +0000 Message-ID: <41694A5C.3050402@comcast.net> Date: Sun, 10 Oct 2004 10:42:36 -0400 From: Jeffrey Tenny 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: postgres jdbc Subject: setFetchSize() not working 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: 200410/78 X-Sequence-Number: 11183 I'm using the 7.3.3 backend, and the JDBC 8.0dev jdbc driver (pgdev.306.jdbc3.jar). I'm calling PreparedStatement.setFetchSize(32), on a table fetching 32KB BYTEA records, and I'm blowing out memory on the executeQuery() call of the prepared statement. PreparedStatement.getFetchDirection reports 1000, which is ResultSet.FETCH_FORWARD. Any clues? Here's the trace catching the driver red-handed with all the memory: SITES BEGIN (ordered by live bytes) Sun Oct 10 09:55:56 2004 percent live alloc'ed stack class rank self accum bytes objs bytes objs trace name 1 80.92% 80.92% 55023456 578 80423168 1051 62286 [B TRACE 62286: org.postgresql.core.PGStream.Receive(PGStream.java:410) org.postgresql.core.PGStream.ReceiveTupleV2(PGStream.java:395) org.postgresql.core.v2.QueryExecutorImpl.processResults(QueryExecutorImpl.java:337) org.postgresql.core.v2.QueryExecutorImpl.execute(QueryExecutorImpl.java:251) org.postgresql.core.v2.QueryExecutorImpl.execute(QueryExecutorImpl.java:159) org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:346) org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:294) org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:209) org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)