Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YPuaE-0001BG-PY for pgsql-jdbc@arkaria.postgresql.org; Mon, 23 Feb 2015 15:06:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YPuaE-0008BN-2L for pgsql-jdbc@arkaria.postgresql.org; Mon, 23 Feb 2015 15:06:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YPnj6-0004AK-Ez for pgsql-jdbc@postgresql.org; Mon, 23 Feb 2015 07:46:48 +0000 Received: from fep13.mx.upcmail.net ([62.179.121.33]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YPniy-0000Ck-3V for pgsql-jdbc@postgresql.org; Mon, 23 Feb 2015 07:46:46 +0000 Received: from edge02.upcmail.net ([192.168.13.237]) by viefep13-int.chello.at (InterMail vM.8.01.05.13 201-2260-151-135-20130320) with ESMTP id <20150223074637.CFJE12567.viefep13-int.chello.at@edge02.upcmail.net>; Mon, 23 Feb 2015 08:46:37 +0100 Received: from viefep11.hosts.upcmail.net ([192.168.14.250]) by edge02.upcmail.net with edge id vjmY1p00p5PiXJQ01jmYZk; Mon, 23 Feb 2015 08:46:36 +0100 X-SourceIP: 192.168.14.250 Message-ID: <20150223084637.50833.4035.root@viefep11.hosts.upcmail.net> Date: Mon, 23 Feb 2015 8:46:32 +0100 From: To: Alvaro Herrera , Dave Cramer Subject: Re: setFetchSize with ResultSet.TYPE_SCROLL_INSENSITIVE Cc: List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) Sensitivity: Normal X-Originating-IP: from 46.140.22.10 by www.upcmail.net; Mon, 23 Feb 2015 8:46:30 +0100 X-Pg-Spam-Score: -1.9 (-) 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 Hello I made many tests since last week, and unfortunately I was wrong with my st= atement..=20 It seems that the description in the documentation is still right about set= FetchSize: Unfortunately if you put the type TYPE_SCROLL_INSENSITIVE, fetch= size will be completely ignored. The same applies to the parameter HOLD_CU= RSORS_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 schrieb: > Not exactly sure how this is a problem ? Seems like an undocumented featu= re. >=20 > Dave Cramer >=20 > dave.cramer(at)credativ(dot)ca > http://www.credativ.ca >=20 > On 19 February 2015 at 11:27, Alvaro Herrera > wrote: >=20 > > I rejected this moderated message to pgsql-general by mistake, so here's > > a re-post to pgsql-jdbc. > > > > -- > > =C3=81lvaro Herrera http://www.2ndQuadrant.com/ > > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services > > > > > > ---------- Forwarded message ---------- > > From: > > 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 backwar= ds > > in the result set, yet fetch size still working... > > > > Am I missing something here or is the description outdated / not counti= ng > > 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 > > > > --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc