pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Goulet, Dick <DGoulet@vicr.com>
Cc: Frank van Vugt <ftm.van.vugt@foxi.nl>
Cc: Greg Stark <gsstark@mit.edu>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Incremental results from libpq
Date: Sun, 13 Nov 2005 10:46:35 -0500
Message-ID: <4304.1131896795@sss.pgh.pa.us> (raw)
In-Reply-To: <20051113152401.GB31570@surnet.cl>
References: <4001DEAF7DF9BD498B58B45051FBEA6502EF5389@25exch1.vicorpower.vicr.com>
	<20051113152401.GB31570@surnet.cl>

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



view thread (30+ messages)  latest in thread

Message-ID: <4304.1131896795@sss.pgh.pa.us>
Permalink:  ../4304.1131896795@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4304.1131896795@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@commandprompt.com, DGoulet@vicr.com, ftm.van.vugt@foxi.nl, gsstark@mit.edu
  Subject: Re: Incremental results from libpq
  In-Reply-To: <4304.1131896795@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox