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 9A854DB97D for ; Thu, 17 Nov 2005 18:07:38 -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 66739-07 for ; Thu, 17 Nov 2005 22:07:39 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx2.surnet.cl (mx2.surnet.cl [216.155.73.181]) by svr1.postgresql.org (Postfix) with ESMTP id E8BCEDB966 for ; Thu, 17 Nov 2005 18:07:34 -0400 (AST) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx2.surnet.cl with ESMTP; 17 Nov 2005 18:17:21 -0300 X-IronPort-AV: i="3.97,344,1125892800"; d="scan'208"; a="28036723:sNHT10244359740" Received: from alvh.no-ip.org (216.155.78.23) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43501597004A153A; Thu, 17 Nov 2005 18:16:23 -0300 Received: by alvh.no-ip.org (Postfix, from userid 1000) id C1EF3C2DC19; Thu, 17 Nov 2005 18:16:35 -0300 (CLST) Date: Thu, 17 Nov 2005 18:16:35 -0300 From: Alvaro Herrera To: David Rysdam Cc: pgsql-interfaces@postgresql.org Subject: Re: Not clear on what PQgetResult does Message-ID: <20051117211635.GD10976@surnet.cl> Mail-Followup-To: David Rysdam , pgsql-interfaces@postgresql.org References: <437CD359.5080908@ll.mit.edu> <451.1132256298@sss.pgh.pa.us> <437CE1B0.3040001@ll.mit.edu> <437CEAC2.6050001@commandprompt.com> <437CEB4E.5040402@ll.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <437CEB4E.5040402@ll.mit.edu> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.77 required=5 tests=[AWL=-0.476, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, RCVD_IN_NJABL_PROXY=0.327] X-Spam-Score: 1.77 X-Spam-Level: * X-Archive-Number: 200511/48 X-Sequence-Number: 5844 David Rysdam wrote: > Joshua D. Drake wrote: > > >>>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! > > > >I am sure we would welcome a patch ;)) > > To be honest, this is almost enough to drive me away from PG. If you are in need of partial results you may as well use a cursor and fetch from it, a bunch at a time. > Or are there underlying server reasons why this won't work? This topic was discussed four days ago I think ... look for a thread with subject "Incremental results from libpq" on the archives of this list. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support