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 6714DDB24B for ; Sun, 13 Nov 2005 11:46:47 -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 51147-08 for ; Sun, 13 Nov 2005 15:46:43 +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 C8E53D84B6 for ; Sun, 13 Nov 2005 11:46:45 -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 jADFkZsk004305; Sun, 13 Nov 2005 10:46:35 -0500 (EST) To: Alvaro Herrera cc: "Goulet, Dick" , Frank van Vugt , Greg Stark , pgsql-interfaces@postgresql.org Subject: Re: Incremental results from libpq In-reply-to: <20051113152401.GB31570@surnet.cl> References: <4001DEAF7DF9BD498B58B45051FBEA6502EF5389@25exch1.vicorpower.vicr.com> <20051113152401.GB31570@surnet.cl> Comments: In-reply-to Alvaro Herrera message dated "Sun, 13 Nov 2005 12:24:01 -0300" Date: Sun, 13 Nov 2005 10:46:35 -0500 Message-ID: <4304.1131896795@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/22 X-Sequence-Number: 5818 Alvaro Herrera writes: > So, what happens with the 1/x query Tom mentioned? How does Oracle > handles that situation? Notice there's no special clause in the query > itself, so if it's extracted and returned, there's no way for the server > to know that there's a problem laying ahead. >> Also Oracle supports cursors which allow you to pop one or more >> rows off of the result set at a time. The way Postgresql returns data >> all at once is different. > Postgres supports cursors too. The Qt guys, and everyone else, could be > using it to get incremental results right now, no libpq mods necessary. Note that in this context, it's really pretty misleading to make any blanket assertions about "Postgres does this" or "Postgres does that". The behavior is partially determined by the client-side code, and might well differ depending on which client library you are using, as well as how you are using it. For all I know, similar remarks might apply to Oracle. Do they support more than one application-side API? regards, tom lane