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 9D3E5D6D07 for ; Thu, 17 Nov 2005 15:38:20 -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 05561-09 for ; Thu, 17 Nov 2005 19:38:20 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9B2CADB98D for ; Thu, 17 Nov 2005 15:38:17 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jAHJcIEN000452; Thu, 17 Nov 2005 14:38:18 -0500 (EST) To: David Rysdam cc: pgsql-interfaces@postgresql.org Subject: Re: Not clear on what PQgetResult does In-reply-to: <437CD359.5080908@ll.mit.edu> References: <437CD359.5080908@ll.mit.edu> Comments: In-reply-to David Rysdam message dated "Thu, 17 Nov 2005 14:00:41 -0500" Date: Thu, 17 Nov 2005 14:38:18 -0500 Message-ID: <451.1132256298@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.006 required=5 tests=[AWL=0.006] X-Spam-Score: 0.006 X-Spam-Level: X-Archive-Number: 200511/40 X-Sequence-Number: 5836 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). > If the latter, is pgtcl's pg_getresult supposed to work the same way? Dunno ... there was no such command last time I looked at pgtcl. regards, tom lane