From: Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problems with big tables.
Date: Sun, 08 Aug 2004 13:32:26 -0500
Message-ID: <411671BA.70806@servidor.unam.mx> (raw)
In-Reply-To: <411401C8.2080109@opencloud.com>
References: <4113C5AD.3070503@servidor.unam.mx>
<411401C8.2080109@opencloud.com>
Thanks to all for the help.
The problem is the autocommit status.
I change the values to off and the program work well ..
Oliver Jowett wrote:
> 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
>
>
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: miguelmr@servidor.unam.mx
Subject: Re: Problems with big tables.
In-Reply-To: <411671BA.70806@servidor.unam.mx>
References: <4113C5AD.3070503@servidor.unam.mx> <411401C8.2080109@opencloud.com> <411671BA.70806@servidor.unam.mx>
* 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