Re: Subject: unbuffered results from libpq?

From: Alexey Nalbat <alexey(at)price(dot)ru>
To: Timothy(dot)Keitt(at)StonyBrook(dot)Edu, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Subject: unbuffered results from libpq?
Date: 2001-05-18 15:32:29
Message-ID: 01051819460400.12019@workshop.price.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ernesto A. Lira Castro 2001-05-18 16:07:00 Help with Login & Passwords
Previous Message Carlos Moreno 2001-05-18 01:41:38 Re: libpq++ and strings.