Jeff Davis <jdavis-pgsql@empires.org> writes:
> When you do a PQexec call in libpq, does PostgreSQL produce the entire
> result in memory on the server side, and then does libpq hold the entire
> result in memory after it retrieves it?
No, and yes.
regards, tom lane