Re: how many tuples on a cursor?

Поиск
Список
Период
Сортировка
От Christoph Haller
Тема Re: how many tuples on a cursor?
Дата
Msg-id 42764540.EDC0C34C@rodos.fzk.de
обсуждение исходный текст
Ответ на how many tuples on a cursor?  (Andreas Kretschmer <akretschmer@despammed.com>)
Список pgsql-sql
Tom Lane wrote:
> 
> Christoph Haller <ch@rodos.fzk.de> writes:
> > What else seems to work is MOVE 2147483647
> > (INT_MAX) and then get the max number of rows
> > by PQcmdTuples().
> 
> I'd suggest "MOVE FORWARD ALL" rather than hard-wiring assumptions
> about the maximum possible value of infinity ;-)
> 

Of course. I should have read the manual on this more carefully. 

Regards, Christoph


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: how many tuples on a cursor?
Следующее
От: Stéphane RIFF
Дата:
Сообщение: Query two database at once