From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter.Rupp@ual.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Help with retrieving large results sets and memory usage.
Date: Mon, 18 Aug 2003 22:50:06 -0400
Message-ID: <19301.1061261406@sss.pgh.pa.us> (raw)
In-Reply-To: <H0002de120a5a419.1061217851.awhq6377@MHS>
References: <H0002de120a5a419.1061217851.awhq6377@MHS>
Peter.Rupp@ual.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
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, Peter.Rupp@ual.com
Subject: Re: Help with retrieving large results sets and memory usage.
In-Reply-To: <19301.1061261406@sss.pgh.pa.us>
* 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