Re: Help with retrieving large results sets and memory usage.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter(dot)Rupp(at)ual(dot)com
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Help with retrieving large results sets and memory usage.
Date: 2003-08-19 02:50:06
Message-ID: 19301.1061261406@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Peter(dot)Rupp(at)ual(dot)com writes:
> When using either interface, I notice that when I select rows from a
> table, it appears that the client interface retrieves the entire
> results set at once...and loads it into memory on the client machine.

The standard answer is to use a cursor and FETCH a few rows at a time.

> Do you folks publish the network symantics and protocols used to
> make sql requests and retrieve their results?

http://developer.postgresql.org/docs/postgres/protocol.html

regards, tom lane

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ryan Mooney 2003-08-19 22:17:08 ECPG Connect user :variable problem
Previous Message Peter.Rupp 2003-08-18 14:44:11 Help with retrieving large results sets and memory usage.