Re: fetchsize dynamically changeable? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: fetchsize dynamically changeable?
Date
Msg-id 41075F06.9080508@opencloud.com
Whole thread Raw
In response to fetchsize dynamically changeable?  (Guido Fiala <guido.fiala@dka-gmbh.de>)
List 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);
> rs.next(); //now we got records nr. 2-11 in memory and sit at nr. 2

That should work.

-O

pgsql-jdbc by date:

Previous
From: Guido Fiala
Date:
Subject: fetchsize dynamically changeable?
Next
From: Oliver Jowett
Date:
Subject: Re: fetchsize dynamically changeable?