pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problems with big tables.
Date: Sat, 07 Aug 2004 10:10:16 +1200
Message-ID: <411401C8.2080109@opencloud.com> (raw)
In-Reply-To: <4113C5AD.3070503@servidor.unam.mx>
References: <4113C5AD.3070503@servidor.unam.mx>

Jose Miguel Madinaveitia Ramirez wrote:
> Hi, I have a problem to obtain big tables (1 million records) with the 
> jdbc driver.
> The out of memory error is throw by the executeQuery().
> The fetchsize() function does not work.?

With the most current drivers, cursors will only be used to 
incrementally fetch data when all of these conditions are true:

   - a positive fetchsize has been set via setFetchSize()
   - autocommit is off
   - the resultset type is TYPE_FORWARD_ONLY
   - you are connecting to a 7.4 or above server

-O



view thread (4+ messages)  latest in thread

Message-ID: <411401C8.2080109@opencloud.com>
Permalink:  ../411401C8.2080109@opencloud.com/
Also on:    postgresql.org/message-id/411401C8.2080109@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, miguelmr@servidor.unam.mx
  Subject: Re: Problems with big tables.
  In-Reply-To: <411401C8.2080109@opencloud.com>
  References: <4113C5AD.3070503@servidor.unam.mx> <411401C8.2080109@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox