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 34F2CD967F for ; Thu, 17 Nov 2005 16:02:05 -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 08778-06 for ; Thu, 17 Nov 2005 20:02:05 +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 9C769D7B8B for ; Thu, 17 Nov 2005 16:02:02 -0400 (AST) Received: (from smtp@localhost) by ll.mit.edu (8.12.10/8.8.8) id jAHK23vx028822 for ; Thu, 17 Nov 2005 15:02:03 -0500 (EST) Received: from UNKNOWN( ), claiming to be "[155.34.198.117]" via SMTP by llmail, id smtpdAAAxQaOJ3; Thu Nov 17 15:01:52 2005 Message-ID: <437CE1B0.3040001@ll.mit.edu> Date: Thu, 17 Nov 2005 15:01:52 -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 CC: pgsql-interfaces@postgresql.org Subject: Re: Not clear on what PQgetResult does References: <437CD359.5080908@ll.mit.edu> <451.1132256298@sss.pgh.pa.us> In-Reply-To: <451.1132256298@sss.pgh.pa.us> 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.138 required=5 tests=[AWL=-0.051, MISSING_HEADERS=0.189] X-Spam-Score: 0.138 X-Spam-Level: X-Archive-Number: 200511/41 X-Sequence-Number: 5837 Tom Lane wrote: >David Rysdam writes: > > >>I don't understand in what sense PQgetResult is asynchronous. >> >> > >It isn't. You can use it in an asynchronous client, but the way you do >that is by not calling it until PQisBusy says you can (which means the >whole result has arrived, and you're just calling PQgetResult to get >hold of it). > So there's no way to have libpq return partial results before they are all ready? If I may, I would like to express some degree of incredulity. Even the version of Sybase I'm using does this right and it's from 1997!