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

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 (view raw or flat)
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

pgsql-jdbc by date

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

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