pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rysdam <drysdam@ll.mit.edu>
To: pgsql-interfaces@postgresql.org
Subject: Not clear on what PQgetResult does
Date: Thu, 17 Nov 2005 14:00:41 -0500
Message-ID: <437CD359.5080908@ll.mit.edu> (raw)

I don't understand in what sense PQgetResult is asynchronous.  Obviously 
PQsendQuery returns immediately and apparently PQgetResult() allows me 
to get separate results from multiple queries submitted together, but...

Let's say I have a table with 1,000,000 rows and I PQsendQuery() a query 
to get them all.  When I call PQgetResult() the first time, will it 
block until all 1,000,000 are ready, or will it send back everything 
that's ready at the time I call it?

If the latter, is pgtcl's pg_getresult supposed to work the same way?



view thread (11+ messages)  latest in thread

Message-ID: <437CD359.5080908@ll.mit.edu>
Permalink:  ../437CD359.5080908@ll.mit.edu/
Also on:    postgresql.org/message-id/437CD359.5080908@ll.mit.edu

 · 

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: drysdam@ll.mit.edu
  Subject: Re: Not clear on what PQgetResult does
  In-Reply-To: <437CD359.5080908@ll.mit.edu>

* 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