Re: Number of rows in a cursor ?

Поиск
Список
Период
Сортировка
От Bo Lorentsen
Тема Re: Number of rows in a cursor ?
Дата
Msg-id 430D6A8F.6000404@netgroup.dk
обсуждение исходный текст
Ответ на Re: Number of rows in a cursor ?  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: Number of rows in a cursor ?  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-sql
Michael Fuhr wrote:

>Right -- when you open a cursor PostgreSQL doesn't know how many
>rows it will return.  PostgreSQL selects a query plan based on an
>*estimate* of how many rows the query will return, but until you
>fetch all the rows you can't know for sure how many rows there will
>be.
>  
>
So if i make a but data set as result of a cursor I only "pay" for the 
rows I actually fetch ?

/BL


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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Can EXCEPT Be Used for To Solve This Problem?
Следующее
От: Daniel Silverstone
Дата:
Сообщение: table listing queries