Re: Index of a table is not used (in any case)

Поиск
Список
Период
Сортировка
От Reiner Dassing
Тема Re: Index of a table is not used (in any case)
Дата
Msg-id 3BD515B0.C14FE0FB@wettzell.ifag.de
обсуждение исходный текст
Ответ на Index of a table is not used (in any case)  (Reiner Dassing <dassing@wettzell.ifag.de>)
Список pgsql-sql
Hello all!

Thank you for the answers I got.

I would like to mention first, that I will use the [SQL] list for my
answers,
regarding the notice of Josh Berkus.

Q: "did you use VACUUM ANALYZE"?
A: This table was a test bed, just using INSERTS without ANY deletes or
updates  (See:  vacuum verbose analyze wetter;   NOTICE:  --Relation wetter--   NOTICE:  Pages 149752: Changed 0,
reaped194, Empty 0, New 0;             Tup 20340000: Vac 26169, Keep/VTL 0/0,  Crash 0, UnUsed 0,
 
MinLen 52,             MaxLen 52;             Re-using: Free/Avail. Space 1467792/1467792;             EndEmpty/Avail.
  Pages 0/194. CPU 6.10s/1.78u sec.  )
 


Q: You should upgrade to 7.1.3?
A: Can you tell me the specific the reason?


Am afraid, that the real answer is not mentioned:
Why is the index used in the SELECT:
select * from wetter order by epoche desc;

select * from wetter where epoche between '1970-01-01' and '1980-01-01'
order by epoche asc;

?

Any ideas?

--
Mit freundlichen Gruessen / With best regards  Reiner Dassing


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Index of a table is not used (in any case)
Следующее
От: Haller Christoph
Дата:
Сообщение: Re: Query On Case structure