Re: query should use an index?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: query should use an index?
Дата
Msg-id 200401101057.25325.peter_e@gmx.net
обсуждение исходный текст
Ответ на query should use an index?  (Bopolissimus Platypus <bopolissimus@sni.ph>)
Список pgsql-general
Bopolissimus Platypus wrote:
> create table test (
>   id serial primary key,
>   t_end timestamp);
>
> there's an index:
>   create index test_t_end on test(t_end);
>
> can or should a query like:
>
>   select login,t_end from test order by t_end desc;
>
> use the index?

It can, but that does not mean that it is unconditionally the best
choice.  The planner will make the decision.


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

Предыдущее
От: Bopolissimus Platypus
Дата:
Сообщение: query should use an index?
Следующее
От: Anton.Nikiforov@loteco.ru
Дата:
Сообщение: Re: Hierarchical queries