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 21FCE32A589 for ; Sun, 10 Oct 2004 23:12:58 +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 85579-08 for ; Sun, 10 Oct 2004 22:12:50 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id DA99A32A1DA for ; Sun, 10 Oct 2004 23:12:40 +0100 (BST) Received: (qmail 18343 invoked by uid 1112); 10 Oct 2004 18:25:09 -0000 Date: Sun, 10 Oct 2004 13:25:09 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Jeffrey Tenny Cc: postgres jdbc Subject: Re: setFetchSize() not working In-Reply-To: <41694A5C.3050402@comcast.net> Message-ID: References: <41694A5C.3050402@comcast.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.7 tagged_above=0.0 required=5.0 tests=DATE_IN_PAST_03_06 X-Spam-Level: X-Archive-Number: 200410/82 X-Sequence-Number: 11187 On Sun, 10 Oct 2004, Jeffrey Tenny wrote: > 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? > The development driver has had cursor based fetching support removed when connecting to servers older than 7.4. The 7.4 release had a new frontend/backend protocol added which allows for an alternate method of streaming ResultSets. The 7.4 driver used the old method, but the development driver was updated to use the new method and in doing that support for streaming using the old protocol was removed. Your options seem to be: - update your server to 7.4 or later - use the 7.4 driver against your 7.3 server - figure out had to re-add support for streaming resultsets from old servers to the new driver. Kris Jurka