Re: Subject: unbuffered results from libpq?

Поиск
Список
Период
Сортировка
От Alexey Nalbat
Тема Re: Subject: unbuffered results from libpq?
Дата
Msg-id 01051819460400.12019@workshop.price.ru
обсуждение исходный текст
Список pgsql-interfaces
Hello.

I have exactly the same question. Could anybody answer it?

My impression is that it can't be maid. Even use of functions PQsetnonblocking,
PQsendQuery, PQgetResult, PQconsumeInput,.. doesn't help. Is it so?

Thanks.

> My impression is that libpq buffers all results of a query.  Is there a 
> way to get a "result stream" from the backend instead of having libpq 
> read everything into a local buffer first?  Currently, my application, 
> after a query, simply copies the entire buffer from the libpq side into 
> storage on the application side.  This seems expensive for large 
> queries.  I'd rather read results directly into storage on the 
> application side, i.e., "while input get next value from backend".  (I 
> know about libpqeasy, but this only iterates over the libpq buffer.)

-- 

WBR, Alexey Nalbat


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

Предыдущее
От: "Erny"
Дата:
Сообщение: RE: Postgres problem
Следующее
От: "Ловпаче Айдамир"
Дата:
Сообщение: Pgaccess - localization problem