PGresult pointer and memory usage

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема PGresult pointer and memory usage
Дата
Msg-id 1106597649.2886.777.camel@jeff
обсуждение исходный текст
Ответы Re: PGresult pointer and memory usage  (Martijn van Oosterhout <kleptog@svana.org>)
Re: PGresult pointer and memory usage  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Eric Merritt
Дата:
Сообщение: What is the format of 'binary' data in the postgresql client/server protocol version 3
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: PGresult pointer and memory usage