Re: Index optimization ?

Поиск
Список
Период
Сортировка
От Bo Lorentsen
Тема Re: Index optimization ?
Дата
Msg-id 41EBDE7F.9050607@netgroup.dk
обсуждение исходный текст
Ответ на Re: Index optimization ?  (Greg Stark <gsstark@mit.edu>)
Ответы Re: Index optimization ?  ("Florian G. Pflug" <fgp@phlo.org>)
Список pgsql-general
Greg Stark wrote:

>If Postgres used an index it would call odd(), which would return 1 because
>it's the first time, and then Postgres would go look up the rows where col is
>1 and return all of them. That's a very different behaviour from if the index
>isn't used. If all the records have col=1 then you're getting all of the
>records instead of half of them. If col=0 then you're getting none of them
>instead of half of them.
>
>
This is the differance between "volatile" and "stable" functions, but
not the answer to why an index lookuo are per query and not per row, is
it not ?

/BL

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

Предыдущее
От: "Frank D. Engel, Jr."
Дата:
Сообщение: Re: Index optimization ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PQexecParams and CURSOR