PGresult pointer and memory usage - Mailing list pgsql-general

From Jeff Davis
Subject PGresult pointer and memory usage
Date
Msg-id 1106597649.2886.777.camel@jeff
Whole thread Raw
Responses Re: PGresult pointer and memory usage
Re: PGresult pointer and memory usage
List pgsql-general
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?

The only time that the server sends parts of the result at a time is
with a cursor, right? And libpq always holds the data that it gets back,
right?

I guess what I'm asking is, where is the PGresult data actually stored,
and how much of it is stored in the client application at a time?

Regards,
    Jeff Davis


pgsql-general by date:

Previous
From: Eric Merritt
Date:
Subject: What is the format of 'binary' data in the postgresql client/server protocol version 3
Next
From: Martijn van Oosterhout
Date:
Subject: Re: PGresult pointer and memory usage