Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT
Дата
Msg-id 20100525115618.GA929@toroid.org
обсуждение исходный текст
Ответ на Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT  (Alex Goncharov <alex-goncharov@comcast.net>)
Ответы Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT  (Alex Goncharov <alex-goncharov@comcast.net>)
Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT  (Giles Lean <giles.lean@pobox.com>)
Список pgsql-hackers
At 2010-05-25 07:35:34 -0400, alex-goncharov@comcast.net wrote:
>
> | Where does the result set (GBs of data) reside after I call
> | PQexecPrepared?  On BE, I hope?

Unless you explicitly declare and fetch from an SQL-level cursor, your
many GBs of data are going to be transmitted to libpq, which will eat
lots of memory. (The wire protocol does have something like cursors,
but libpq does not use them, it retrieves the entire result set.)

-- ams


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Yeb Havinga
Дата:
Сообщение: Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: JSON manipulation functions