Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dOHMR-0004ZV-Ez for pgsql-jdbc@arkaria.postgresql.org; Fri, 23 Jun 2017 05:42:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dOHMQ-0003KY-Oi for pgsql-jdbc@arkaria.postgresql.org; Fri, 23 Jun 2017 05:42:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dOHMQ-0003K5-4Y for pgsql-jdbc@postgresql.org; Fri, 23 Jun 2017 05:42:26 +0000 Received: from [195.159.176.226] (helo=blaine.gmane.org) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dOHMN-0007om-Dg for pgsql-jdbc@postgresql.org; Fri, 23 Jun 2017 05:42:25 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dOHMG-0007va-I8 for pgsql-jdbc@postgresql.org; Fri, 23 Jun 2017 07:42:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Streaming ResultSet Date: Fri, 23 Jun 2017 07:42:15 +0200 Lines: 25 Message-ID: References: <1498176526105-5968275.post@n3.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@blaine.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 In-Reply-To: <1498176526105-5968275.post@n3.nabble.com> Content-Language: de-DE X-Host-Lookup-Failed: Reverse DNS lookup failed for 195.159.176.226 (failed) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org albertwang schrieb am 23.06.2017 um 02:08: > I met the same problem. Our company uses PostgreSQL as the OLTP system. I am > working on an ETL project which reads data from a PostgreSQL db, transforms > the data and then load the data into another PostgreSQL db. The ETL tool > uses JDBC. > > My problem is that the ETL won't start to transform the data before the > whole data result set has been loaded into memory. > > I would like to do the data transforming and loading while extracting data. > > Do you know if there is any progress reagrding the streaming result set? As > I know, MySQL does support it. Not sure what you mean with "streaming resultset", but if you don't want the driver to buffer the complete result, then there is a solution to it: retrieving based on a cursor. See the documentation for details: https://jdbc.postgresql.org/documentation/head/query.html#query-with-cursor Thomas -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc