Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT
Date
Msg-id 4BFBE30E.6070305@dunslane.net
Whole thread Raw
In response to Re: libpq, PQexecPrepared, data size sent to FE vs. FETCH_COUNT  (Alex Goncharov <alex-goncharov@comcast.net>)
List pgsql-hackers

Alex Goncharov wrote:
> ,--- I/Alex (Mon, 24 May 2010 12:25:18 -0400) ----*
> | No equivalent of FETCH_COUNT is available at the libpq level, so I
> | assume that the interface I am using is smart enough not to send
> | gigabytes of data to FE.
> | 
> | Where does the result set (GBs of data) reside after I call
> | PQexecPrepared?  On BE, I hope?
>
> Sorry for asking again...
>
> No sarcasm meant: is there no straightforward answer here?  Or nobody
> is certain?  Or a wrong list?
>
>
>   

You have been given the answer. Please re-read the replies, e.g. the one 
from Abhijit Menon-Sen.

The data is saved on the client side before the call returns. If that 
uses too much memory, use a cursor.

cheers

andrew


pgsql-hackers by date:

Previous
From: Mike Fowler
Date:
Subject: [PATCH] Add XMLEXISTS function from the SQL/XML standard (was: Add xpath_exists Function)
Next
From: Joseph Adams
Date:
Subject: Re: JSON manipulation functions