From: reto.hodel@hispeed.ch
To: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: setFetchSize with ResultSet.TYPE_SCROLL_INSENSITIVE
Date: Mon, 23 Feb 2015 8:46:32 +0100
Message-ID: <20150223084637.50833.4035.root@viefep11.hosts.upcmail.net> (raw)
In-Reply-To: <CADK3HH+YhbLpo7ZdTUSHJPEAUtu=jTFXN76S+UfmTVHiDSdYqA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Hello
I made many tests since last week, and unfortunately I was wrong with my statement..
It seems that the description in the documentation is still right about setFetchSize: Unfortunately if you put the type TYPE_SCROLL_INSENSITIVE, fetch size will be completely ignored. The same applies to the parameter HOLD_CURSORS_OVER_COMMIT. I just had too much memory, so that I didn't recognized that the driver is actually fetching the full result set...
Reto
---- Dave Cramer <pg@fastcrypt.com> schrieb:
> Not exactly sure how this is a problem ? Seems like an undocumented feature.
>
> Dave Cramer
>
> dave.cramer(at)credativ(dot)ca
> http://www.credativ.ca
>
> On 19 February 2015 at 11:27, Alvaro Herrera <alvherre@2ndquadrant.com>
> wrote:
>
> > I rejected this moderated message to pgsql-general by mistake, so here's
> > a re-post to pgsql-jdbc.
> >
> > --
> > Álvaro Herrera http://www.2ndQuadrant.com/
> > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
> >
> >
> > ---------- Forwarded message ----------
> > From: <reto.hodel@hispeed.ch>
> > To: pgsql-general@postgresql.org
> > Cc:
> > Date: Thu, 19 Feb 2015 10:23:47 +0100
> > Subject: setFetchSize with ResultSet.TYPE_SCROLL_INSENSITIVE
> > Hello
> >
> > According to the following link (
> > https://jdbc.postgresql.org/documentation/head/query.html) setting the
> > fetch size is only possible if ResultSet type is set to
> > ResultSet.TYPE_FORWARD_ONLY.
> >
> > However, I'm not facing any problems when setting the type to
> > ResultSet.TYPE_SCROLL_INSENSITIVE: I'm able to move forward AND backwards
> > in the result set, yet fetch size still working...
> >
> > Am I missing something here or is the description outdated / not counting
> > for all driver versions?
> >
> > PS: I'm using JDBC driver 9.3 1100
> >
> > Thanks
> >
> >
> >
> > --
> > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> > To make changes to your subscription:
> > http://www.postgresql.org/mailpref/pgsql-jdbc
> >
> >
--
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: reto.hodel@hispeed.ch, alvherre@2ndquadrant.com, pg@fastcrypt.com
Subject: Re: setFetchSize with ResultSet.TYPE_SCROLL_INSENSITIVE
In-Reply-To: <20150223084637.50833.4035.root@viefep11.hosts.upcmail.net>
References: <CADK3HH+YhbLpo7ZdTUSHJPEAUtu=jTFXN76S+UfmTVHiDSdYqA@mail.gmail.com> <20150223084637.50833.4035.root@viefep11.hosts.upcmail.net>
* 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