Why is the query not using the index for sorting?

Поиск
Список
Период
Сортировка
От Jonathan Blitz
Тема Why is the query not using the index for sorting?
Дата
Msg-id 6913EA33EE934FF3B17ADA8A87082D15@jblaptop
обсуждение исходный текст
Ответы Re: Why is the query not using the index for sorting?  (Thom Brown <thombrown@gmail.com>)
Re: Why is the query not using the index for sorting?  (Craig Ringer <craig@postnewspapers.com.au>)
Re: Why is the query not using the index for sorting?  (Matthew Wakeling <matthew@flymine.org>)
Список pgsql-performance
I have a table with a number of columns.
 
I perform
 
Select *
from table
order by a,b
 
There is an index on a,b which is clustered (as well as indexes on a and b alone).
I have issued the cluster and anyalze commands.
 
Nevertheless, PostgreSQL performs a Sequential Scan on the table and then performs a sort.
Am I missing something?
 
Jonathan Blitz

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

Предыдущее
От: afancy
Дата:
Сообщение: Re: Performance degrade running on multicore computer
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Why is the query not using the index for sorting?