Re: Incremental results from libpq

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Incremental results from libpq
Дата
Msg-id 20051113152401.GB31570@surnet.cl
обсуждение исходный текст
Ответ на Re: Incremental results from libpq  ("Goulet, Dick" <DGoulet@vicr.com>)
Ответы Re: Incremental results from libpq
Re: Incremental results from libpq
Список pgsql-interfaces
Goulet, Dick wrote:

>     For a simple "select * from <table_name>" even with a where
> clause you may simply get the results one row at a time as they are
> extracted & deemed appropriate for the result set.  But if you've
> included a group by or order by clause, or a union/intersect/minus
> clause then yes, the database will assemble results before sending them
> to the client.

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.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Goulet, Dick"
Дата:
Сообщение: Re: Incremental results from libpq
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Incremental results from libpq