Not clear on what PQgetResult does

Поиск
Список
Период
Сортировка
От David Rysdam
Тема Not clear on what PQgetResult does
Дата
Msg-id 437CD359.5080908@ll.mit.edu
обсуждение исходный текст
Ответы Re: Not clear on what PQgetResult does
Re: Not clear on what PQgetResult does
Список pgsql-interfaces
I don't understand in what sense PQgetResult is asynchronous.  Obviously 
PQsendQuery returns immediately and apparently PQgetResult() allows me 
to get separate results from multiple queries submitted together, but...

Let's say I have a table with 1,000,000 rows and I PQsendQuery() a query 
to get them all.  When I call PQgetResult() the first time, will it 
block until all 1,000,000 are ready, or will it send back everything 
that's ready at the time I call it?

If the latter, is pgtcl's pg_getresult supposed to work the same way?


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

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