Re: Incremental results from libpq

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Incremental results from libpq
Дата
Msg-id 4304.1131896795@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Incremental results from libpq  (Alvaro Herrera <alvherre@commandprompt.com>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Incremental results from libpq
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Incremental results from libpq