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 48EAEDB8C5 for ; Thu, 17 Nov 2005 16:21:41 -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 14207-01 for ; Thu, 17 Nov 2005 20:21:41 +0000 (GMT) X-Greylist: delayed 00:06:40.684035 by SQLgrey- Received: from web34601.mail.mud.yahoo.com (web34601.mail.mud.yahoo.com [209.191.68.135]) by svr1.postgresql.org (Postfix) with SMTP id 48A83DB600 for ; Thu, 17 Nov 2005 16:21:38 -0400 (AST) Received: (qmail 4246 invoked by uid 60001); 17 Nov 2005 20:14:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WlCxwOU/nr3HucgZoL2D3cMW4diyXpot7VEdAXSiZVL9grVR9C4BbRlu40jQJLC1I6ExfWWL80i3Mjj8PMwyBHSuDeqXpdJ4PpC2QwvxUaxTgPKcvtgrDwNjp0jz1Q6aCCJZD2izDG4YCBf/mv8LsB+iL406T3Sm2+/0eO7Fjag= ; Message-ID: <20051117201458.4244.qmail@web34601.mail.mud.yahoo.com> Received: from [192.160.6.252] by web34601.mail.mud.yahoo.com via HTTP; Thu, 17 Nov 2005 12:14:58 PST Date: Thu, 17 Nov 2005 12:14:58 -0800 (PST) From: Brett Schwarz Subject: Re: Not clear on what PQgetResult does To: David Rysdam , pgsql-interfaces@postgresql.org In-Reply-To: <437CD359.5080908@ll.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.479 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.479 X-Spam-Level: X-Archive-Number: 200511/42 X-Sequence-Number: 5838 > > 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