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 0510656139 for ; Fri, 25 Feb 2005 16:12:29 +0000 (GMT) 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 12235-10 for ; Fri, 25 Feb 2005 16:12:20 +0000 (GMT) Received: from unicorn.rentec.com (unicorn.rentec.com [216.223.240.9]) by svr1.postgresql.org (Postfix) with ESMTP id 4EC0452A85 for ; Fri, 25 Feb 2005 16:12:18 +0000 (GMT) Received: from wren.rentec.com (wren.rentec.com [192.5.35.106]) by unicorn.rentec.com (8.13.1/8.12.1) with ESMTP id j1PGCcft018812 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 25 Feb 2005 11:12:39 -0500 (EST) X-Rentec: external Received: from [172.26.132.145] (hoopoe.rentec.com [172.26.132.145]) by wren.rentec.com (8.13.1/8.12.1) with ESMTP id j1PGCcK3006711 for ; Fri, 25 Feb 2005 11:12:38 -0500 (EST) Message-ID: <421F4E76.508@rentec.com> Date: Fri, 25 Feb 2005 11:12:38 -0500 From: Alan Stange User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a6) Gecko/20050111 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: setFetchSize question Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200502/199 X-Sequence-Number: 12379 Hello all, I just noticed something and I thought I'd ask: When reading large chunks of data in the 7.4 JDBC client I would code something like this: conn.setAutoCommit(false); st.setFetchDirection(ResultSet.FETCH_FORWARD); st.setFetchSize(1000); st.executeQuery("select * from foo"); which would result in queries to the postgresql server like this: DECLARE JDBC_CURS_588 CURSOR FOR select * from foo; fetch forward 1000 from JDBC_CURS_588; with subsequent fetch forward queries being executed as the full result set is pulled in. In the 8.0 driver I don't see this happening. I see only the "select * from foo" query in the postgresql server log. Is the query result still being sent in batch chunks of 1000 rows, but using a different mechanism? Thanks! -- Alan