Skip site navigation (1) Skip section navigation (2)

Re: fetchsize dynamically changeable?

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Guido Fiala <guido(dot)fiala(at)dka-gmbh(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: fetchsize dynamically changeable?
Date: 2004-07-28 08:08:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Guido Fiala wrote:
> Given all the other requirements for cursors are met, is it possible to change 
> the fetchsize on the fly?
> e.g.
> conn.createStatement(...);
> st.setFetchsize(1);
> rs=st.executeQuery(...);//we got the first record
> st.setFetchsize(10);
>; //now we got records nr. 2-11 in memory and sit at nr. 2

That should work.


In response to

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2004-07-28 09:45:02
Subject: Re: fetchsize dynamically changeable?
Previous:From: Guido FialaDate: 2004-07-28 06:39:56
Subject: fetchsize dynamically changeable?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group