X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D7582D7003 for ; Thu, 17 Nov 2005 15:00:59 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86550-09 for ; Thu, 17 Nov 2005 19:00:59 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ll.mit.edu (LLMAIL.LL.MIT.EDU [129.55.12.40]) by svr1.postgresql.org (Postfix) with ESMTP id 332DDDB99D for ; Thu, 17 Nov 2005 15:00:56 -0400 (AST) Received: (from smtp@localhost) by ll.mit.edu (8.12.10/8.8.8) id jAHJ0uPK001653 for ; Thu, 17 Nov 2005 14:00:56 -0500 (EST) Received: from UNKNOWN( ), claiming to be "[155.34.198.117]" via SMTP by llmail, id smtpdAAA4zaaHc; Thu Nov 17 14:00:41 2005 Message-ID: <437CD359.5080908@ll.mit.edu> Date: Thu, 17 Nov 2005 14:00:41 -0500 From: David Rysdam User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Not clear on what PQgetResult does Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.05 required=5 tests=[AWL=0.050] X-Spam-Score: 0.05 X-Spam-Level: X-Archive-Number: 200511/39 X-Sequence-Number: 5835 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?