Re: Incremental results from libpq - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Incremental results from libpq
Date
Msg-id 4304.1131896795@sss.pgh.pa.us
Whole thread Raw
In response to Re: Incremental results from libpq  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-interfaces
Alvaro Herrera <alvherre@commandprompt.com> 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


pgsql-interfaces by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Incremental results from libpq
Next
From: Greg Stark
Date:
Subject: Re: Incremental results from libpq