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

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

pgsql-interfaces by date

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

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