fetchsize dynamically changeable?

From: Guido Fiala <guido(dot)fiala(at)dka-gmbh(dot)de>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: fetchsize dynamically changeable?
Date: 2004-07-28 06:39:56
Message-ID: 200407280839.56336.guido.fiala@dka-gmbh.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

BTW - how is FETCH BACKWARD, what needs to be done to get it working?

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2004-07-28 08:08:38 Re: fetchsize dynamically changeable?
Previous Message Oliver Jowett 2004-07-27 22:19:03 Re: [HACKERS] Binary Cursors, and the COPY command