pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexey Nalbat <alexey@price.ru>
To: Timothy.Keitt@StonyBrook.Edu
To: pgsql-interfaces@postgresql.org
Subject: Re: Subject: unbuffered results from libpq?
Date: Fri, 18 May 2001 19:32:29 +0400
Message-ID: <01051819460400.12019@workshop.price.ru> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <01051819460400.12019@workshop.price.ru>
Permalink:  ../01051819460400.12019@workshop.price.ru/
Also on:    postgresql.org/message-id/01051819460400.12019@workshop.price.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: alexey@price.ru, Timothy.Keitt@StonyBrook.Edu
  Subject: Re: Subject: unbuffered results from libpq?
  In-Reply-To: <01051819460400.12019@workshop.price.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox