From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Streaming ResultSet
Date: Fri, 23 Jun 2017 07:42:15 +0200
Message-ID: <oii9nh$ush$1@blaine.gmane.org> (raw)
In-Reply-To: <1498176526105-5968275.post@n3.nabble.com>
References: <s2dd1ab9.027@gwmta.wicourts.gov>
<1498176526105-5968275.post@n3.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Streaming ResultSet
In-Reply-To: <oii9nh$ush$1@blaine.gmane.org>
References: <s2dd1ab9.027@gwmta.wicourts.gov> <1498176526105-5968275.post@n3.nabble.com> <oii9nh$ush$1@blaine.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox