Re: JDBC memory usage

From: jao(at)geophile(dot)com
To: Bill Schneider <bschneider(at)vecna(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC memory usage
Date: 2004-07-23 18:36:01
Message-ID: 1090607761.41015a91d8bd8@geophile.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Quoting Bill Schneider <bschneider(at)vecna(dot)com>:

> Hello,
>
> I noticed that I keep running out of memory when trying to run a query
> that returns 100,000 rows or so.
>
> Searching the archives, it seems that the JDBC driver reads the entire
> ResultSet into memory at once rather than using cursors. This is
> definitely not the desired behavior for this particular query.
>
> Has this been fixed recently? I'm using PostgreSQL 7.3.4 with the
> corresponding JDBC driver.

I ran into this problem. The driver developers informed me that
this problem is fixed in 7.4, and that the new driver can be used
with a 7.3 server. (This exchange should be in the pgsql-jdbc
archives.)

Jack Orenstein

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Yi LIN 2004-07-23 19:46:13 conflict txns in serialization isolation
Previous Message Bill Schneider 2004-07-23 18:20:07 JDBC memory usage