Skip site navigation (1) Skip section navigation (2)

Re: Not clear on what PQgetResult does

From: Brett Schwarz <brett_schwarz(at)yahoo(dot)com>
To: David Rysdam <drysdam(at)ll(dot)mit(dot)edu>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Not clear on what PQgetResult does
Date: 2005-11-17 20:14:58
Message-ID: 20051117201458.4244.qmail@web34601.mail.mud.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
> 
> 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?
> 

pg_getresult really is just a wrapper around
PQgetResult, so it should behave the same.

See the README.async in pgtcl if you want more info on
async with pgtcl.

    --brett


--brett


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

In response to

pgsql-interfaces by date

Next:From: Joshua D. DrakeDate: 2005-11-17 20:40:34
Subject: Re: Not clear on what PQgetResult does
Previous:From: David RysdamDate: 2005-11-17 20:01:52
Subject: Re: Not clear on what PQgetResult does

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group